mozilla-b2g/gaia — pull request #8052 by KevinGrandon (2013-02-12 01:21:53+00:00)
Title: Bug 840362 - Slight performance improvement to homescreen panning.

According to a perf test I just ran, we may be able to slightly improve responsiveness with a small change. The perf test is here: http://jsperf.com/test-string-replace-regexp-vs-string

This is showing me that inline string concatenation is the fastest possible operation to perform, which makes sense. Even though the gain is tiny, I'd recommend going with this as this is called rapidly within a touchmove event.