CircularDict is a high-performance Python data structure that combines the best of dictionaries and circular buffers. It provides a data structure that acts as a dictionary but operates as a circular buffer, efficiently removing the oldest item when a predetermined maximum length is exceeded. Ideal for caching large items while minimizing memory usage, CircularDict provides a unique solution for developers requiring dictionary-like and circular-queue-like operations in a single, efficient data structure.
Project description
CircularQueueDict
Dictionary that acts as a Circular Queue, allowing to set a maximum length and automatically delete oldest element when inputting a new one. Useful for temporal storage of large elements that could overflow memory.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.