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 Array.join() to build strings in the PostScript parser #5053

Closed
wants to merge 1 commit into from
Closed

Use Array.join() to build strings in the PostScript parser #5053

wants to merge 1 commit into from

Conversation

Snuffleupagus
Copy link
Collaborator

Similar to a number of previous patches, let's avoid creating a bunch of unnecessary strings in the PostScript parser.

@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/909a6f1f805caa6/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/909a6f1f805caa6/output.txt

Total script time: 0.70 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

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

Total script time: 0.96 mins

  • Unit Tests: Passed

@CodingFabian
Copy link
Contributor

looks good to me

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/68b4b9214659068/output.txt

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/23426832f995ddd/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/2e833f09e855c9f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/2e833f09e855c9f/output.txt

Total script time: 2.74 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/23426832f995ddd/output.txt

Total script time: 36.74 mins

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

@fkaelberer
Copy link
Contributor

Maybe you can also replace successive calls of String.fromCharCode with a single call of Utils.bytesToString, which is much faster in my experience. Considering nnethercote's comment that strings use 16-32 bytes, it should also be more memory-friendly to collect the char codes in the array instead of short strings.

@Snuffleupagus
Copy link
Collaborator Author

Closing in favour of PR #5063.

@Snuffleupagus Snuffleupagus deleted the ps-parser-Array-join branch July 24, 2014 08:45
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