Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more compact keys in PDFLinkService._pagesRefCache #11048

Conversation

Snuffleupagus
Copy link
Collaborator

By using the same internal formatting here as in the Ref.toString method, in src/core/primitives.js, all cache-keys will become at least two bytes shorter (and most three bytes shorter).
Obviously this won't have a huge effect on memory since there's only one cache entry per page, but it nonetheless seems wasteful to use longer keys than strictly required.

By using the same internal formatting here as in the `Ref.toString` method, in `src/core/primitives.js`, all cache-keys will become at least two bytes shorter (and most three bytes shorter).
Obviously this won't have a huge effect on memory since there's only one cache entry per page, but it nonetheless seems wasteful to use longer keys than strictly required.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2019

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 1

Live output at: http://54.67.70.0:8877/8e76755f5f46df2/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/8e76755f5f46df2/output.txt

Total script time: 1.69 mins

Published

@timvandermeij timvandermeij merged commit a666f1e into mozilla:master Aug 5, 2019
@timvandermeij
Copy link
Contributor

Good find!

@Snuffleupagus Snuffleupagus deleted the linkService-compact-pagesRefCache branch August 5, 2019 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants