News for hackers. Stuff that matters.
Re:Fuzzysearch: Tiny, fast fuzzy searching for JavaScript by niix on Monday July 20, 2015 @10:37AM (#9916313)
Yes, but it is typically frowned upon. Here's and MDN on it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:Fuzzysearch: Tiny, fast fuzzy searching for JavaScript by timdorr on Monday July 20, 2015 @11:30AM (#9916665)
Though in this case, it's a crazy performance hack from Vyacheslav Egorov. Check out the graph: https://cloud.githubusercontent.com/assets/934293/6550014/d3...
Re:Fuzzysearch: Tiny, fast fuzzy searching for JavaScript by mraleph on Monday July 20, 2015 @11:41AM (#9916742)
I would not call it a performance hack, it's just a readable way to write an algorithm - most important part of my original suggestion was actually to use x.charCodeAt(i) instead of x[i]