Hello all,
I've written a plugin that provides a fast in-memory hashmap for TCC.
tcc-plugins/hashmap at master · jessepav/tcc-plugins
Compared to UnQLite, it
Best,
Jesse
I've written a plugin that provides a fast in-memory hashmap for TCC.
tcc-plugins/hashmap at master · jessepav/tcc-plugins
Compared to UnQLite, it
- Is not transactional
- Is not thread-safe
- Doesn't support cursors
- Doesn't support data sets larger than memory
- Only supports textual values
- is faster and lighter
(For storing and persisting entries, it is much, much faster: in a basic performance test on my old laptop, storing 100 Unicode string entries and saving them to disk took 41 ms using Hashmap and 6731 ms using UnQLite. (This probably involves the @UNQ commands flushing to disk after every call, but for the user who doesn't need ACID guarantees, the result is painful slowness.) - provides more convenient syntax for inserting and retrieving entries with commas and quotation marks in their keys or values.
- allows for multiple in-memory maps
Best,
Jesse
Last edited: