mozilla-b2g/gaia — pull request #4029 by davidflanagan (2012-08-28 16:40:26+00:00)
Title: possible performance improvement in predictive text

@andreasgal this pull request rewrites your Code2String() function to take advantage of the fact that String.fromCharCodes() accepts multiple arguments.

My microbenchmarks indicate that this new version is faster if the input array length is > 3, and speed improves with increasing array length. I don't know whether that translates to a win in typical use, however.