mozilla/pdf.js — pull request #5096 by nnethercote (2014-07-28 23:37:18+00:00)
Title: Right-size |chars.length| and |type.length| in bidi().

This lets the JS engine resize the array elements buffer immediately,
thus avoiding some intermediate resizings. This can save multiple MiBs
of reallocation in text-heavy files.