Provides high performance container data types such as queues, stacks,
deques, dicts and ordered dicts. Benchmarks
https://randy3k.github.io/collections/articles/benchmark.html have
shown that these containers are asymptotically more efficient than those
offered by other packages.
Installation
You can install the released version of collections from
CRAN with:
High Performance Container Data Types
Github: https://github.com/randy3k/collections
Documentation: https://randy3k.github.io/collections/
Provides high performance container data types such as queues, stacks, deques, dicts and ordered dicts. Benchmarks https://randy3k.github.io/collections/articles/benchmark.html have shown that these containers are asymptotically more efficient than those offered by other packages.
Installation
You can install the released version of collections from CRAN with:
Install the latest development version using
Example
Queue
Stack
Deque
Priority Queue
Dictionary. Comparing to R environments,
dict()does not leak memory and supports various other types of keys.Ordered Dictionary