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

Graphic optimizations 2 #4764

Merged
merged 3 commits into from
May 14, 2014
Merged

Conversation

p01
Copy link
Contributor

@p01 p01 commented May 9, 2014

This PR mostly improves the expansion of stream buffers by using the builtin copy, and Type4 PostScript functions by simplifying the memoization mechanism and increasing its size to match newest data.

if (cache.has(key)) {
return cache.get(key);
var value = cache[key];
if(value !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: space after if

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 9, 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/1f8d2c95a435147/output.txt

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2014

From: Bot.io (Linux)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2014

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2014

From: Bot.io (Linux)


Failed

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

Total script time: 25.98 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2014

From: Bot.io (Windows)


Failed

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

Total script time: 23.68 mins

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

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

@timvandermeij
Copy link
Contributor

@p01 There appear to be some issues with the gradients. Could you look into that?

@p01
Copy link
Contributor Author

p01 commented May 13, 2014

I'm on it.
With gradients and meshes I just discovered another area of PDF.js to dig further and optimize.

@p01
Copy link
Contributor Author

p01 commented May 13, 2014

The gradients are fine.
I overlooked the fact the input ( domain ) and output ( range ) can have different length.

@yurydelendik
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/64e67968a6a881f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 23.40 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/64e67968a6a881f/output.txt

Total script time: 26.15 mins

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

Image differences available at: http://107.21.233.14:8877/64e67968a6a881f/reftest-analyzer.html#web=eq.log

@p01
Copy link
Contributor Author

p01 commented May 13, 2014

Looking at issue1998

@yurydelendik
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/660dd14421636f4/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/3496bebf6431a06/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/660dd14421636f4/output.txt

Total script time: 23.68 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/3496bebf6431a06/output.txt

Total script time: 25.91 mins

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

yurydelendik added a commit that referenced this pull request May 14, 2014
@yurydelendik yurydelendik merged commit 7f6cb0e into mozilla:master May 14, 2014
@yurydelendik
Copy link
Contributor

Looks good, thank you for the patch

@p01
Copy link
Contributor Author

p01 commented May 15, 2014

Thanks!

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.

None yet

4 participants