bevacqua / fuzzysearch

:crystal_ball: Tiny and blazing-fast fuzzy search in JavaScript
https://ponyfoo.com
MIT License
2.71k stars 87 forks source link

More tests more problems. #6

Closed LarryBattle closed 9 years ago

LarryBattle commented 9 years ago

Added more test cases and switched to using a regular expression instead of a for loop.

dustinhayes commented 9 years ago

This is really good. I'm curious what the performance implications are of using regexp instead of a simple loop.

bevacqua commented 9 years ago

Probably abysmal. I'll put together a jsperf test

bevacqua commented 9 years ago

So yeah, abysmal. Closing.

http://jsperf.com/fuzzysearch-regex

screen shot 2015-03-04 at 20 21 10

dustinhayes commented 9 years ago

Haha holy cow!