Tim van der Meij
a20c39083c
Merge pull request #5000 from pramodhkp/memop
...
[SVG] Optimization of constructPath & Adds unit lengths
11 years ago
pramodhkp
afd853e962
Added units for lengths
11 years ago
Jonas Jenwald
a7c786775d
[CIDFontType2] Map characters missing in toUnicode to the private use area (bug 1028735 and issue 4881)
11 years ago
pramodhkp
86e584d767
Memory optimzation for constructPath
11 years ago
Nicholas Nethercote
a483c80fc3
Make QueueOptimizer easier to read.
...
QueueOptimizer is really hard to read. Enough so that it's blocking my
efforts to streamline the representation used for operator lists.
This patch improves its readability in the following ways.
- More descriptive variable names make the sequence checking much clearer,
as do additional comments.
- The addState() functions now return the index of the first op past the
sequence, instead of setting context.currentOperation to the last op of
the sequence.
- The loop in optimize() is clearer.
- The array modification in the fourth addState() function is much clearer
-- we're just removing trios of ops.
- All four |addState| functions are now more consistent with each other.
I used some debug printfs to find documents where these optimizations are
used and then checked that the number of optimized ops was the same before
and after my changes.
11 years ago
Nicholas Nethercote
db866945b7
Improve how DecodeStream handles empty buffers.
...
DecodeStream currently initializes its |buffer| field to |null|, which
is reasonable, because lots of DecodeStreams never need to instantiate a
buffer. But this requires various special cases in the code.
This patch change it so DecodeStreamClosure has a single empty
Uint8Array which gets shared between all buffers upon initialization.
This avoids the special cases.
DecodeStream.prototype.ensureBuffer() is really hot, and this removes a
test from the fast path. For one 226 page scanned document this sped up
rendering by about 2%.
11 years ago
Tim van der Meij
0ac83802ba
Merge pull request #5004 from CodingFabian/issue-5002
...
Improving CanvasPixelArray polyfill for Android
11 years ago
fkaelberer
fc73e2e173
use getBytes() instead of looping over getByte()
11 years ago
Jonas Jenwald
c5f4051a75
A few small optimizations of adjustMapping
...
Replace a couple of |in| checks with comparisons against undefined.
11 years ago
Jonas Jenwald
c121def806
A few small optimizations for CIDFontType2 fonts
...
Cache a constant length and replace one usage of |in| with a comparison against undefined.
11 years ago
Jonas Jenwald
04975acceb
Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)
11 years ago
fkaelberer
9a41659ae7
Faster chunkedStream_getByte()
11 years ago
Fabian Lange
54fb1f7226
Improving CanvasPixelArray polyfill for Android
11 years ago
Yury Delendik
2e98f9095e
Merge pull request #5001 from CodingFabian/issue-4994
...
Do not run cleanup while printing is ongoing.
11 years ago
Fabian Lange
6447397c04
Do not run cleanup while printing is ongoing.
11 years ago
pramodhkp
7efd50e64d
Added paintJpegXObject
11 years ago
pramodhkp
d799a18b74
Added paintSolidColorImageMask
11 years ago
pramodhkp
c8a4ab3a19
Optimization of save/restore usage
11 years ago
Yury Delendik
b482393e6a
Merge pull request #4997 from CodingFabian/issue-4974
...
Fixes CanvasPixelArray set polyfill (#4974 )
11 years ago
Fabian Lange
9fd6cc7f1e
Fixes CanvasPixelArray set polyfill for chrome < 21 ( #4974 )
11 years ago
Yury Delendik
cd79ac84af
Merge pull request #4999 from pramodhkp/saverestore
...
[SVG] Optimization of save/restore usage, Addition of paint methods
11 years ago
Yury Delendik
6d5a04149b
Merge pull request #4993 from pramodhkp/rectelmnt
...
Combine re element into constructPath
11 years ago
pramodhkp
8407d28c9e
Combine re element into constructPath
11 years ago
Jonas Jenwald
8ad1ea3c5f
Zero the height and width of the WebGL canvases on cleanup
11 years ago
Yury Delendik
10db93be29
Merge pull request #4980 from Snuffleupagus/bug-1027533
...
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
11 years ago
Yury Delendik
bb7e7d33c5
Merge pull request #4976 from CodingFabian/restructure-evaluator-read
...
Restructured EvaluatorPreprocessor_read to be more natural.
11 years ago
Yury Delendik
c28839b2f3
Merge pull request #4944 from Snuffleupagus/issue-4934
...
Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934)
11 years ago
Fabian Lange
60f67c3961
Restructured EvaluatorPreprocessor_read to be more natural.
11 years ago
Yury Delendik
6d86c92514
Merge pull request #4991 from timvandermeij/text-layer-builder-refactoring
...
Refactoring text layer builder and converting text layer builder to a class
11 years ago
Tim van der Meij
c7e614323a
Removing unnecessary includes from text selection example
11 years ago
Yury Delendik
3ad58db7e8
Merge pull request #4982 from nnethercote/use-null-for-zero-args
...
Use null instead of [] for ops with no args.
11 years ago
Yury Delendik
70556710d4
Merge pull request #4987 from timvandermeij/text-search-refactoring
...
Refactoring PDF find controller and implementing page content and query normalization
11 years ago
Tim van der Meij
fa33b9c643
Refactoring PDFFindController in the text layer builder
11 years ago
Tim van der Meij
a968da8887
Convert the text layer builder to a class
11 years ago
Tim van der Meij
2a052c4aad
Refactoring text layer builder
11 years ago
Nicholas Nethercote
081866a184
Use null instead of [] for ops with no args.
...
This reduces peak RSS on one test file from ~600 to ~560 MiB.
11 years ago
Tim van der Meij
fbfb9458d6
Implement text normalization for page content and queries
11 years ago
Tim van der Meij
ec1b58a30a
Fix code style issues in pdf_find_controller.js and build strings more efficiently
11 years ago
Jonas Jenwald
b19bb74813
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
11 years ago
Yury Delendik
456d219f2a
Merge pull request #4981 from yurydelendik/svg1
...
Misc SVG Viewer example fixes
11 years ago
Yury Delendik
834f466c05
Fixes SVG transforms on restore
11 years ago
Yury Delendik
9a28b8a412
Misc UI improvements for the SVG Viewer
11 years ago
Yury Delendik
6258ae61d5
Merge pull request #4979 from pramodhkp/svg-v3
...
SVG Viewer Example demo
11 years ago
pramodhkp
dd253aadeb
SVG Viewer example demo
11 years ago
Yury Delendik
84157e039d
Merge pull request #4973 from nnethercote/better-ref-keys
...
Factor out repeated Ref key string generation code.
11 years ago
Nicholas Nethercote
1ad3ffbc7b
Factor out repeated Ref key string generation code.
...
In src/core/obj.js, we convert a Ref to a string to index into a table like
this: 'R1.0'. This conversion is repeated numerous times.
This patch factors out the conversion into a new function.
Ref.prototype.toString().
11 years ago
Yury Delendik
c0a6b0f308
Merge pull request #4971 from yurydelendik/rm-suppressEncryption
...
Removes error catch from fetchUncompressed()
11 years ago
Yury Delendik
b557b87fc9
Merge pull request #4972 from nnethercote/preprocessor-read
...
Avoid allocating return object in EvaluatorPreprocessor_read().
11 years ago
Nicholas Nethercote
17170af3c7
Avoid allocating return object in EvaluatorPreprocessor_read().
...
This function can be called 100s of 1000s or even millions of times, and the
allocated return object accounts for 10% of all GC thing allocations for some
documents. It's easy to avoid, which reduces stress on the garbage collector,
and this patch does that.
11 years ago
Yury Delendik
623fa29300
Removes error catch from fetchUncompressed()
11 years ago