mozilla-b2g/gaia — pull request #4830 by ckerschb (2012-09-17 21:37:02+00:00)
Title: code and minor speed optimization

a) The function 'maintainTopCandidates' works faster without calling 'sort' on the array. Thanks David for pointing that out.

b) Minor speed optimization by not calling the property .length over and over in the loop header.

c) Omission, Deletion, Transposition does not need to be called if the input word consists only of one character.