Message from JavaScript discussions

May 2017

— But for diverse datasets, this will improve search efficiency massively

— 

You could also target by multiple letters, instead of just the first. I'm not sure how much more effective that would be

— All these checks are ordered from "least expensive" to "most expensive" too, so if we can deduce that the string is not in the set from a less expensive method, we just saved time :D

Message permanent page

— Put in js file, and module.exports the class

— Should follow this api:
s = new Set()
s.add(str)
s.has(str)
s.delete(str)

— Sure

— Made the test better

— I am eager to see if it is slower or faster

— As the dataset diversifies the algorithm will slow down, of course, but I am wondering about overall speed average

Message permanent page

— The nodejs module.exports?

— Yeh

— Module.exports = MySet;