Skip to content

Fix #4935 #5150

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

Merged
merged 3 commits into from
Aug 10, 2014
Merged

Fix #4935 #5150

merged 3 commits into from
Aug 10, 2014

Conversation

nnethercote
Copy link
Contributor

These changes greatly reduce the time and memory needed to render the document in #4935.

When loading the PDF from issue mozilla#4935, this change reduces peak RSS from
~2400 to ~300 MiB, and improves overall speed by ~81%, from 6336 ms to
1222 ms.
map.isIdentity = true;
map.toUnicode = toUnicode;
return map;
return new IdentityToUnicodeMap(properties.firstChar, properties.lastChar);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Travis, this line is one character too long.

@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/78f65f472e04e3c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Linux)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/ee557d009d8e54a/output.txt

@nnethercote
Copy link
Contributor Author

I fixed the too-long line.

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/78f65f472e04e3c/output.txt

Total script time: 3.34 mins

  • Font tests: FAILED
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/78f65f472e04e3c/reftest-analyzer.html#web=eq.log

@nnethercote
Copy link
Contributor Author

The windows failure looks like an infrastructure fault.

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/ee557d009d8e54a/output.txt

Total script time: 22.57 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/86a8fcf2db74188/output.txt

@Snuffleupagus
Copy link
Collaborator

/botio-windows test

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/a3e7f77e071e4cf/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/a3e7f77e071e4cf/output.txt

Total script time: 2.86 mins

  • Font tests: FAILED
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/a3e7f77e071e4cf/reftest-analyzer.html#web=eq.log

@nnethercote
Copy link
Contributor Author

More Windows infra failures.

@yurydelendik
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/bbeb168a0a2510c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 8, 2014

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/bbeb168a0a2510c/output.txt

Total script time: 19.84 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij
Copy link
Contributor

Awesome work. I can confirm that the loading time of the mentioned PDF went down from 8813 ms to 680 ms; a massive improvement!

@yurydelendik
Copy link
Contributor

Looks good. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants