JS HashSet 1.0

Free A javascript based, implementation of HashSets for rapid searching
Rating
Your vote:
Latest version:
1.0 See all
Developer:
Screenshots
1 / 1
Awards (1)
Show all awards
Software Informer Virus Free award
Freeware
Trusted Download
Free   4.6 KB

'JavaScript Hashset' is a pure JS implementation of the HashSet data-type. It is suitable with for client usage and also for node.js . It is optimized for JavaScript search / lookup routines - which can be a performance bottleneck slow when iterating Arrays in JavaScript.

Compatibility: Internet Explorer 5, IE5.5, IE6, IE7, IE8, IE9, IE10, IE11. Node, NPM, Chrome. FireFox, Opera, Konqueror. It has 'close to universal' JS compatibility.

A hashset is like an unordered array of values, but it can be searched for a value exponentially faster than a the native Array.contains or Array.indexOf functions. This makes it easier to write efficient, fast code. Hassets may use marginally more memory than normal arrays, but not exponentially more so.

Hashsets are hugely popular in optimized c# and Java programming - because they allow developers a very fast way for looking up (searching) to see if a value already exists in a Hashset. It uses a dictionary like lookup - which does not get slower as the set grows in size. This is ideal for situations which we want avoid duplicate entries in an array - or check the existence of a value without a performance slowdown.

A common weakness of Hashsets is that they are unordered - and as such - can not be enumerated (foreach). This weakness is overcome in 'JavaScript Searchable Hashset' with a enumerate function and also a copyToArray function. more

Comments

User

Your vote: