Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Nov 20, 2009
  1. replace `isNewWord` and `isUpperCase` functions with regexes

    authored
    Slight speedup, actually less than I thought, but my benchmarks
    are limited.  Normally, I'm all about readability and make functions
    that I only use once to make the code more readable, but this is an
    algorithm that needs to be fast, and the regexes are very simple.
    
    Also, may catch some more cases, as `\s` will match other space chars
    than just ' ' and '\t' would.
  2. - make `from`, `to` required params to `fillArray`

    authored
    after returning false on no match case, only one spot where `to`
    was being optionally used.  Simplifies logic of fillArray, and a
    noticable speedup.
  3. wrap body function in paranthesis, ala jquery, to make it clear liqui…

    authored
    …dmetal is not a constructor function
  4. - use classic `for` loop for score avg calculation

    authored
    seems to give speedup
  5. - Return false instead of array of 0's on miss case.

    authored
    This speads up single letter abbrv miss ~10x, 4 letter case ~2x.
    
    - Fix few `if (x == 0)` to use `===`, just to be safe.
  6. bump google.ajax jquery version to 1.3.2, and comment it out, preferi…

    authored
    …ng local version of jquery
  7. turn `for in` loop to classic for loop iterating over array.

    authored
    Hard to see performance increase, but `for in` is generally considered bad for looping over an array - especially since people extend the array prototype to add things like indexOf and forEach to normalize browsers, which then get iterated over :[
    
    http://stackoverflow.com/questions/421794/what-is-the-fastest-way-of-looping-over-an-array-on-javascript
  8. make some basic benchmarks.

    authored
    Found out later that gitignore had benchmark.html
    in it, which hid my benchmark file from all later commits.
    Removed that from gitignore, and am now rewriting history.
  9. replace `isNewWord` and `isUpperCase` functions with regexes

    authored
    Slight speedup, actually less than I thought, but my benchmarks
    are limited.  Normally, I'm all about readability and make functions
    that I only use once to make the code more readable, but this is an
    algorithm that needs to be fast, and the regexes are very simple.
    
    Also, may catch some more cases, as `\s` will match other space chars
    than just ' ' and '\t' would.
  10. - make `from`, `to` required params to `fillArray`

    authored
    after returning false on no match case, only one spot where `to`
    was being optionally used.  Simplifies logic of fillArray, and a
    noticable speedup.
  11. wrap body function in paranthesis, ala jquery, to make it clear liqui…

    authored
    …dmetal is not a constructor function
  12. - use classic `for` loop for score avg calculation

    authored
    seems to give speedup
  13. - Return false instead of array of 0's on miss case.

    authored
    This speads up single letter abbrv miss ~10x, 4 letter case ~2x.
    
    - Fix few `if (x == 0)` to use `===`, just to be safe.
  14. bump google.ajax jquery version to 1.3.2, and comment it out, preferi…

    authored
    …ng local version of jquery
  15. turn `for in` loop to classic for loop iterating over array.

    authored
    Hard to see performance increase, but `for in` is generally considered bad for looping over an array - especially since people extend the array prototype to add things like indexOf and forEach to normalize browsers, which then get iterated over :[
    
    http://stackoverflow.com/questions/421794/what-is-the-fastest-way-of-looping-over-an-array-on-javascript
  16. make some basic benchmarks

    authored
Commits on Jun 15, 2009
  1. @rmm5t

    Readme typo

    rmm5t authored
Commits on Feb 13, 2009
  1. @rmm5t

    Readme updates

    rmm5t authored
Commits on Feb 9, 2009
  1. @rmm5t

    Date tweak

    rmm5t authored
Commits on Feb 8, 2009
  1. @rmm5t

    Word wrap in the README

    rmm5t authored
Commits on Feb 7, 2009
  1. @rmm5t
  2. @rmm5t

    readme updated

    rmm5t authored
Commits on Feb 6, 2009
  1. @rmm5t

    Initial commit

    rmm5t authored
Something went wrong with that request. Please try again.