hashcoll-fast
Fast hashset and hashmap implementation, written in Rust and compiled to Webassembly, based on hashbrown, a Rust port of Google's high-performance SwissTable hash map.
Usage
$ yarn add hashcoll-fast
String
HashSet<String>
const HashSet = HashSet; const set = 4; set;set; set; // trueset; // false set;
HashMap<String, String>
const HashMap = HashMap; const map = 4; map;map; map; // truemap; // false map; // 'bar'
Vec<u8>
HashSetRaw<Vec<u8>>
const HashSetRaw = HashSetRaw; const set = 4; set;set; set; // trueset; // false set; // Uint8Array(3) [ 102, 111, 111 ]
HashMap<String, Vec<u8>>
const HashMapRaw = HashMap; const map = 4; map;map; map; // // Uint8Array(3) [ 102, 111, 111 ]map; // undefined map; // truemap; // false map; // Uint8Array(3) [ 102, 111, 111 ]
Build
$ make