Class: exports

exports(maxSize, keySize, objSize) → {SharedMap}

SharedMap zero-dependency high-performance unordered Vanilla JS implementation of SharedMap, a synchronous multi-threading capable, fine-grain-locked with deadlock recovery, static memory allocated, coalesced-chaining HashMap, backed by SharedArrayBuffer that supports deleting and is capable of auto-defragmenting itself on delete unless almost full compatible with both Node.js and SharedArrayBuffer-enabled browsers

Constructor

new exports(maxSize, keySize, objSize) → {SharedMap}

Creates a new SharedMap
Parameters:
Name Type Description
maxSize number Maximum number of entries
keySize number Maximum length of keys in UTF-16 codepoints
objSize number Maximum length of values in UTF-16 codepoints
Author:
Source:
See:
Returns:
Type
SharedMap