pdf.js/src/core
Nicholas Nethercote adf58ed687 Represent cid chars using integers, not strings.
cid chars are 16-bit unsigned integers. Currently we convert them to
single-char strings when inserting them into the CMap, and then convert
them back to integers when extracting them from the CMap. This patch
changes CMap so that cid chars stay in integer format throughout, saving
both time and space.

When loading the PDF from issue #4580, this change reduces peak RSS from
~600 to ~370 MiB. It also improves overall speed on that PDF by ~26%,
going from 724 ms to 533 ms.
2014-08-01 02:35:17 -07:00
..
annotation.js Removes PDFJS.Annotation 2014-06-18 16:58:11 -05:00
arithmetic_decoder.js Micro optimization of ArithmeticDecoder_readBit 2014-03-13 17:38:12 +01:00
bidi.js Right-size |chars.length| and |type.length| in bidi(). 2014-07-28 16:35:45 -07:00
charsets.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
chunked_stream.js Faster chunkedStream_getByte() 2014-06-26 22:34:00 +02:00
cmap.js Represent cid chars using integers, not strings. 2014-08-01 02:35:17 -07:00
colorspace.js Add |fillRgb| method to LabCS 2014-07-10 12:06:19 +02:00
core.js Re-factor parsing of the Linearization dictionary 2014-07-27 12:56:09 +02:00
crypto.js SHA512 optimizations 2014-06-13 15:12:50 -05:00
evaluator.js Make CMap.map quasi-private. 2014-07-30 06:26:35 -07:00
font_renderer.js Remove some unused variables from src/ 2014-04-15 17:10:23 +02:00
fonts.js Represent cid chars using integers, not strings. 2014-08-01 02:35:17 -07: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 Fix mishandling of incomplete, inverted masks. 2014-06-13 06:14:52 -07:00
jbig2.js Simplify Jbig2Image.decodeInteger() 2014-05-10 18:03:54 +02:00
jpg.js faster JPEG transform 2014-06-17 10:09:17 +02:00
jpx.js Refactoring error reporting in JPX 2014-06-13 18:22:42 -05:00
metrics.js Split files into worker and main thread pieces. 2013-08-12 10:48:06 -07:00
murmurhash3.js Fixes murmurhash for old webkit. 2014-05-29 21:16:32 -05:00
network.js Removes mozResponseArrayBuffer 2014-05-29 20:38:50 -05:00
obj.js Optimize Ref_toString(). 2014-07-24 06:49:56 -07:00
parser.js Re-factor parsing of the Linearization dictionary 2014-07-27 12:56:09 +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 Avoid creating intermediate strings in the PostScriptLexer 2014-07-27 13:51:28 +02:00
stream.js Revert commit fc73e2e (PR 5005) for breaking certain PDF files 2014-07-22 21:17:57 +02:00
worker.js Telemetry for used stream and font types 2014-06-16 16:41:04 -05:00