Nicholas Nethercote bcc31b666f Right-size the array in getSampleArray().
This allows the JS engine to do a better job of allocating the right
number of elements for the array, avoiding some resizings. For the PDF
in #2504, this avoids 100s of MiBs of allocations in Firefox.
2014-08-14 18:56:12 -07:00
..
2014-08-10 14:40:49 +02:00
2012-10-29 14:08:52 -04:00
2014-08-10 14:11:04 -05:00
2014-07-19 16:41:07 +02:00
2014-07-25 21:53:09 +02:00