joshaven / string_score

JavaScript string ranking 0 for no match upto 1 for perfect... "String".score("str"); //=> 0.825
MIT License
840 stars 62 forks source link

Minification friendly code tweaked to run a little faster #3

Closed gorakhargosh closed 13 years ago

gorakhargosh commented 13 years ago

Size of minified code was reduced from 465 bytes to 410bytes. Also faster. Now between 60ms-70ms range in Firefox from the previous 70ms-80ms. Also, a coffeescript version is now included (not hand-tuned). Hand-tuned code is smaller. Literate programming in coffee-script version.

Cheers, GK. =)

joshaven commented 13 years ago

Sweet, faster and smaller! Do more with less until we do everything with nothing!