-
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
Use fuzzy-matching to improve cache hit rates with PostScriptEvaluator
#18070
base: master
Are you sure you want to change the base?
Use fuzzy-matching to improve cache hit rates with PostScriptEvaluator
#18070
Conversation
952b07d
to
b354b3a
Compare
b354b3a
to
ec6b346
Compare
This improves performance, without any noticeable regressions when running `gulp browsertest --noChrome` locally on Windows. Testing the new `pr5134` test-case locally in the viewer: - With the `master` branch and `isEvalSupported = true`, page 2 renders in approx. 350 milliseconds. - With the `master` branch and `isEvalSupported = false`, page 2 renders in approx. 1550 milliseconds. - With this patch and `isEvalSupported = false`, page 2 renders in approx. 700 milliseconds. Hence this obviously isn't enough to close the performance gap, but it *may* still be helpful.
ec6b346
to
d39e14d
Compare
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/95008531e66a0fd/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/986f8a3849056f7/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/95008531e66a0fd/output.txt Total script time: 22.07 mins
Image differences available at: http://54.241.84.105:8877/95008531e66a0fd/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/986f8a3849056f7/output.txt Total script time: 25.63 mins
|
@calixteman Any opinions about this? (Obviously "this is a stupid idea" is a perfectly valid response :-) The PDF document referenced here is a particularly "bad" one, given the PostScript functions it contains, and in most cases the functions aren't slow enough to really be an issue in practice. My thinking here is that if we manage to improve the performance of |
Yeah, I read this patch few months ago now, and I was a bit doubtful, not really doubtful but something around so-so, doubtful, why not, ... That said I'd really like to get rid of this
I tried the first one only, I saw few things to improve but unfortunately, the perfs were bad and I didn't see that much room for improvements. To answer to your question, maybe we can try it and see how it behaves in the wild, and if we've "too much" negative feedback, we can revert the patch and wait for a better solution. That said if you want to try to implement one of the two ideas above (or an other idea of course), feel free to do it, just tell me to avoid to work both of us on it. |
This improves performance, without any noticeable regressions when running
gulp browsertest --noChrome
locally on Windows.Testing the new
pr5134
test-case locally in the viewer:master
branch andisEvalSupported = true
, page 2 renders in approx. 350 milliseconds.master
branch andisEvalSupported = false
, page 2 renders in approx. 1550 milliseconds.isEvalSupported = false
, page 2 renders in approx. 700 milliseconds.Hence this obviously isn't enough to close the performance gap, but it may still be helpful.