-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Optimize Ref_toString(). #5078
Optimize Ref_toString(). #5078
Conversation
I have a large PDF where this function is called 1.6 million times during loading. Minimizing the string concatenations reduces the cumulative allocations done by Firefox within this function from 113 MB to 48 MB.
/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/74844d11bc600ee/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/5b588c684a22b53/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/5b588c684a22b53/output.txt Total script time: 21.23 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/74844d11bc600ee/output.txt Total script time: 23.32 mins
|
/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/c7b4ca50000830b/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/c7b4ca50000830b/output.txt Total script time: 0.75 mins Published
|
See http://njn.valgrind.org/book.pdf. Warning: it's a 20 MiB file. |
Thanks |
I have a large PDF where this function is called 1.6 million times
during loading. Minimizing the string concatenations reduces the
cumulative allocations done by Firefox within this function from 113 MB
to 48 MB.