1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00
pdf.js/test
Nicholas Nethercote b3024db677 Estimate the size of decoded streams in advance.
When decoding a stream, the decode buffer is often grown multiple times, its
byte size increasing like so: 512, 1024, 2048, etc. This patch estimates the
minimum size in advance (using the length of the encoded stream), often
allowing the smaller sizes to be skipped. It also renames numerous |length|
variables as |maybeLength| to make it clear that they can be |null|.

I measured this change on eight documents. This change reduces the cumulative
size of decode buffer allocations by 0--32%, with 10--20% being typical. This
reduces peak RSS by 10 or 20 MiB for several of them.
2014-03-13 02:06:58 -07:00
..
features Uses postMessage transfers 2013-11-14 15:21:42 -08:00
font Change test font to one that works with ttx v2.4. 2014-02-10 14:53:50 -08:00
mozcentral Sync with m-c http://hg.mozilla.org/mozilla-central/rev/162130598df0 2012-09-07 20:21:07 -05:00
pdfs Support for the image mask in higher resolution than the image itself 2014-03-07 02:16:39 +06:00
resources Rewritten reftest analyzer from XHTML to HTML5 2014-02-24 23:00:46 +01:00
stats Start of the stat utilities. 2012-12-10 10:19:02 -08:00
ttx Adds ttx test harness 2012-11-01 19:29:04 -05:00
unit Estimate the size of decoded streams in advance. 2014-03-13 02:06:58 -07:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
driver.js Refactors getTextContent return value 2014-01-17 13:26:00 -06:00
reporter.js Replacing gjslint with jshint; fixing jshint for windows 2013-02-05 10:17:49 -06:00
test.py Rewritten reftest analyzer from XHTML to HTML5 2014-02-24 23:00:46 +01:00
test_manifest.json Support for the image mask in higher resolution than the image itself 2014-03-07 02:16:39 +06:00
test_slave.html Refactors shared/pattern.js into core/ and display/ 2014-01-25 12:18:22 -06:00