Skip to main content

A fast and simple queue for inter thread communication

Project description

fque

Overview

Fast Queue (short fque) is a simplified version of the built-in queue.Queue() with basic functionality but higher performance. The inspiration behind this library is to have a highly performant queue that allows inter-thread communication with high throughputs.

fque runs 10x faster than the standard queue implementation by relying on pythons built-in deque and implementing just the minimum needed locks.

Usage

The library can be directly installed from pypi

pip install fque

The usage resembles queue.Queue() but with just the basic functions needed to share information across threads:

import fque

q = fque.Queue()
q.put(1)
result = q.get()

The Queue object accepts a maxsize parameter and the .get() function accepts a block and timeout, same as the standard queue.Queue(). The empty and full checkers are also implemented. Other features as the timeouts for put are not going to be implemented as they reduce the performance of the queue.

Licence & Copyright

Licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fque-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

fque-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fque-0.0.2.tar.gz.

File metadata

  • Download URL: fque-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for fque-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3f69572674494a28ba85226f9d2c3fee4c0447e8dab6a738323811e6ed231e8f
MD5 446ccd7db48e4ff478860d3ceef96954
BLAKE2b-256 20c053de6d62f2a2a998862c1c90a1e49a5df0569d4f15b655199c96e4650d22

See more details on using hashes here.

File details

Details for the file fque-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fque-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for fque-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e34ecaeeb09425282c2eb6c266f914c3c93e0cafc0cec5b08b33b6ff73b8deb6
MD5 6ddd416124fd02bfaa074c2589ced25b
BLAKE2b-256 8e7b0ba545483501a13cebe68bb9de5fc6891dd25cd4f1a65dc38773a3c814b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page