pdf.js/src/core
Fabian Lange 0a42edf82f Optimize JPG.js receiveAndExtend for 1 bit case.
Profiling showed that receiveAndExtend is frequently called with the length of
one bit. This happens for example in decodeBaseline.
For a single bit, the loop and shift in receive, as well as the shifts in
receiveAndExtend are overhead.
This shortcut manually calculates the shifts by either returning 1 or -1 from
receiveAndExtend by reading the bit and deciding on the return value.
While it comes with an overhead for each non-one length, the speedup is at about
10% in the hot parse/decode path.
2014-06-05 12:24:53 +02:00
..
arithmetic_decoder.js Micro optimization of ArithmeticDecoder_readBit 2014-03-13 17:38:12 +01:00
bidi.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
charsets.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
chunked_stream.js Add isEmpty method to Stream, DecodeStream and ChunkedStream 2014-05-18 21:41:05 +02:00
cidmaps.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
cmap.js Prevent adding undefined array entries to CMap.map in mapRangeToArray (issue 4875) 2014-06-02 14:29:54 +02:00
colorspace.js Moves shared/colorspace.js into core/ 2014-05-23 14:11:47 -05:00
core.js Adds Promise to the getOperatorList 2014-05-19 16:19:54 -05:00
crypto.js Fixes lint warning W004 in src/core 2014-04-11 00:41:08 +02:00
evaluator.js Merge pull request #4861 from timvandermeij/xobject 2014-05-29 08:40:57 -05:00
font_renderer.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
fonts.js Prevent font error when no preferred cmap table is found (workaround for issue 4800) 2014-05-27 17:30:11 +02:00
function.js Moves shared/function.js to core/ 2014-05-23 14:11:47 -05:00
glyphlist.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
image.js Refactors MessageHandler.send to remove callbacks 2014-05-07 18:15:25 -05:00
jbig2.js Simplify Jbig2Image.decodeInteger() 2014-05-10 18:03:54 +02:00
jpg.js Optimize JPG.js receiveAndExtend for 1 bit case. 2014-06-05 12:24:53 +02:00
jpx.js Removes mozResponseArrayBuffer 2014-05-29 20:38:50 -05:00
metrics.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
murmurhash3.js Resolving new lint issues 2014-04-11 00:41:18 +02:00
network.js Removes mozResponseArrayBuffer 2014-05-29 20:38:50 -05:00
obj.js Fixes typo in getAsync 2014-06-04 11:30:53 -05:00
parser.js small optimizations in parser.getObj(), lexer.getObj() 2014-05-23 09:25:36 +02:00
pattern.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
pdf_manager.js Remove LegacyPromise in src/core/worker.js 2014-05-03 00:09:49 +02:00
ps_parser.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
stream.js Adds color components decoding to the JPEG 2014-06-03 08:51:57 -05:00
worker.js Adds Promise to the getOperatorList 2014-05-19 16:19:54 -05:00