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

Uploaded Source

Built Distribution

fque-0.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fque-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c53ef55a60d3d76f227fec7ce0db7aedc31644f4bcf3a49dae77dff87c57a393
MD5 d31b9b89401f4c4464351934bf565d23
BLAKE2b-256 4d446eab7f7bad8b3b4616d488e504329e0898e867cda6ea4e834fa1b5410825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fque-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37948e2c1a7f416630680a2c06abca53c53a6a2987454eecda2f118007900eeb
MD5 dc92dacb8da6d047a7ad4f5e0fc38ce3
BLAKE2b-256 90c8f00e974e6f38dee0ffbbf253be9079f5957b6897d511b137b8aae95a04f7

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