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.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fque-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7c8e541852816b7e618495a0dbfc432b97ec659125bdc58b1f5f416f21e735fa
MD5 51bb6fd45c022db25778a550f15a31ac
BLAKE2b-256 07dc479e0a8a40b8b248fdc74b17a81c5a1db4e97459cb831b1f17181a7def37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fque-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6394d9709889bd34391241b469593c6d7552f2348b4bd72ba7cfd9b42f3e2c0f
MD5 796a1049f5148b3b2a722be5c7d1f7d2
BLAKE2b-256 f39bdb8ecd98c16da494cecad560ce574f201e7ca0f4b4dc0971604ab4e8455f

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