-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Remove the remaining closure in the src/display/canvas.js
file
#13792
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
Remove the remaining closure in the src/display/canvas.js
file
#13792
Conversation
For e.g. the `gulp mozcentral` command, the *built* `pdf.js` file decreases from `304 607` to `301 295` bytes with this patch. The improvement comes mostly from having less overall indentation in the code.
85b1d32
to
8bef790
Compare
…ethod-names on the `CanvasGraphics.prototype` There's no good reason, as far as I can tell, to explicitly define a bunch of methods to be `undefined`, which the current unconditional "copying" of methods will do. Note that of the `OPS` ~23 percent don't, for various reasons, have an associated method on the `CanvasGraphics.prototype`.
8bef790
to
e1fa845
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/43a041db2deb249/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 3 Live output at: http://3.101.106.178:8877/610ebc4559fe5eb/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/43a041db2deb249/output.txt Total script time: 32.79 mins
Image differences available at: http://54.67.70.0:8877/43a041db2deb249/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/610ebc4559fe5eb/output.txt Total script time: 37.36 mins
Image differences available at: http://3.101.106.178:8877/610ebc4559fe5eb/reftest-analyzer.html#web=eq.log |
Nice clean-up! |
For e.g. the
gulp mozcentral
command, the builtpdf.js
file decreases from304 607
to301 295
bytes with this patch. The improvement comes mostly from having less overall indentation in the code.Much easier reviewing with https://github.com/mozilla/pdf.js/pull/13792/files?w=1