-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Conversation
/botio unittest |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/909a6f1f805caa6/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/af76e2a6f7ef6e1/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/909a6f1f805caa6/output.txt Total script time: 0.70 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/af76e2a6f7ef6e1/output.txt Total script time: 0.96 mins
|
looks good to me |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/68b4b9214659068/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/68b4b9214659068/output.txt Total script time: 0.98 mins Published
|
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/23426832f995ddd/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/2e833f09e855c9f/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/2e833f09e855c9f/output.txt Total script time: 2.74 mins
Image differences available at: http://107.22.172.223:8877/2e833f09e855c9f/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/23426832f995ddd/output.txt Total script time: 36.74 mins
|
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. |
Closing in favour of PR #5063. |
Similar to a number of previous patches, let's avoid creating a bunch of unnecessary strings in the PostScript parser.