janl/mustache.js — comment on commit 9a8ff7638ac7cabe1513378423b4c567029ebc21
File:  line 0
By janl:

I guess this warrants a jsperf. I was just wondering that multiple calls to replace() and thus the regex engine would be faster than one call with a callback. I do think your version is more concise, so I'd prefer to keep it, if we can prove that it is at least not significantly slower :)