mozilla/pdf.js — pull request #5151 by nnethercote (2014-08-08 05:18:47+00:00)
Title: Avoid repeated creation of a simple RegExp object.

This helps avoid creation of tens or hundreds of thousands of objects for the doc in #4487, which reduces cumulative memory allocations by about 2%. Not a huge improvement, but not bad for something so simple.