1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00
pdf.js/src/core
Jonas Jenwald 2fe9f3ff8f Add caching to reduce the number of Ref objects
This is similar to the existing caching used to reduced the number of `Cmd` and `Name` objects.
With the `tracemonkey.pdf` file, this patch changes the number of `Ref` objects as follows (in the default viewer):

|          | Loading the first page | Loading *all* the pages |
|----------|------------------------|-------------------------|
| `master` | 332                    | 3265                    |
| `patch`  | 163                    | 996                     |
2019-05-26 12:23:37 +02:00
..
annotation.js Implement creation date only for markup annotations 2019-05-25 15:31:06 +02:00
arithmetic_decoder.js Convert src/core/arithmetic_decoder.js to ES6 syntax 2019-01-06 15:04:01 +01:00
bidi.js Fix inconsistent spacing and trailing commas in objects in src/core/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 11:20:19 +02:00
ccitt.js Fix abbreviation. 2018-09-13 13:10:38 -07:00
ccitt_stream.js Extract the actual decoding in CCITTFaxStream into a new CCITTFaxDecoder "class", which the new CCITTFaxStream depends on 2017-10-24 16:03:08 +02:00
cff_parser.js Put the string name of the glyph in the charset array. 2019-03-01 18:03:51 -08:00
charsets.js Convert src/core/charsets.js and src/core/standard_fonts.js to ES6 syntax 2019-01-06 15:04:01 +01:00
chunked_stream.js Add a progressiveDataLength fast-path to ChunkedStream.ensureByte 2019-03-29 20:00:28 +01:00
cmap.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
colorspace.js Reduce unnecessary duplication of the isDefaultDecode methods on ColorSpace instances 2019-01-25 08:53:08 +01:00
core_utils.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
crypto.js Implement the AESBaseCipher class and let the AES128Cipher and AES256Cipher classes extend it 2018-02-03 20:16:33 +01:00
document.js Add caching to reduce the number of Ref objects 2019-05-26 12:23:37 +02:00
encodings.js Implement unit tests for the encodings and fix missing items 2017-12-24 18:14:40 +01:00
evaluator.js Merge pull request #10794 from janpe2/cidtogidmap-zero 2019-05-15 00:04:39 +02:00
font_renderer.js Map all glyphs to the private use area and duplicate the first glyph. 2018-09-05 14:04:54 -07:00
fonts.js Fix glyph 0 in CIDFontType2 that has a CIDToGIDMap stream 2019-05-07 18:44:37 +03:00
function.js Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js (PR 7295 follow-up) 2018-06-02 11:16:05 -04:00
glyphlist.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
image.js Reduce unnecessary duplication of the isDefaultDecode methods on ColorSpace instances 2019-01-25 08:53:08 +01:00
image_utils.js Move NativeImageDecoder into a separate file, and convert it to a class 2019-03-09 15:59:04 +01:00
jbig2.js Expose a Jbig2Image.parse method, by re-instating the parseJbig2 function 2018-06-16 17:56:54 +02:00
jbig2_stream.js Fix the interface of JpegStream/JpxStream/Jbig2Stream to agree with the other DecodeStreams 2017-11-11 11:22:16 +01:00
jpeg_stream.js Add a new parameter to JpegImage.getData to indicate the source of the image data (issue 9513) 2018-09-02 14:15:22 +02:00
jpg.js Enable the consistent-return ESLint rule 2019-05-11 14:27:21 +02:00
jpx.js Add more validation of the /Filter entry, in image dictionaries, to the PDFImage constructor 2018-08-01 16:41:15 +02:00
jpx_stream.js Fix the interface of JpegStream/JpxStream/Jbig2Stream to agree with the other DecodeStreams 2017-11-11 11:22:16 +01:00
metrics.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
murmurhash3.js Convert MurmurHash3_64 to an ES6 class 2019-03-09 17:03:06 +01:00
obj.js Add caching to reduce the number of Ref objects 2019-05-26 12:23:37 +02:00
operator_list.js Enable the consistent-return ESLint rule 2019-05-11 14:27:21 +02:00
parser.js Add caching to reduce the number of Ref objects 2019-05-26 12:23:37 +02:00
pattern.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
pdf_manager.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
primitives.js Add caching to reduce the number of Ref objects 2019-05-26 12:23:37 +02:00
ps_parser.js Convert src/core/charsets.js and src/core/standard_fonts.js to ES6 syntax 2019-01-06 15:04:01 +01:00
standard_fonts.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
stream.js Add Glyph & Cog's XPDF copyright/license information. 2018-09-12 13:59:56 -07:00
type1_parser.js Remove usage of makeSubStream from Type1Parser.extractFontProgram in src/core/type1_parser.js (issue 9735) 2018-05-28 14:32:20 +02:00
unicode.js Move worker-thread only functions from src/shared/util.js and into a new src/core/core_utils.js file 2019-02-24 00:35:39 +01:00
worker.js Add caching to reduce the number of Ref objects 2019-05-26 12:23:37 +02:00