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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fque-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f8f3656c013b7bc8ef78b0b8c4a5367f7ef73606ba0f5f43bafacac7a99c9f32
MD5 1d957aee02aab156716dab405173b4ea
BLAKE2b-256 16df81e04733ce5a2ac1bece94be9e61e897df1096116d93e49bc3df4fbf3538

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fque-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4fd34aa05144941e77e44ac4ab50e6323e2ca55e2764a1c831b939702ad7e0b
MD5 abdd2ec65c051e7d5b6d6dbca1ef6f3d
BLAKE2b-256 e025e13f1c46f47e7195e59bbdf69eb58341a30f2571300442e725646c68a9fe

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