-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Re-factor the PDFDocument.documentInfo
method, and remove the isString
helper function
#14602
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
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/f3e742027fb90ba/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/0e473ba8e2e16b6/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/f3e742027fb90ba/output.txt Total script time: 23.57 mins
Image differences available at: http://54.241.84.105:8877/f3e742027fb90ba/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/0e473ba8e2e16b6/output.txt Total script time: 24.96 mins
Image differences available at: http://54.193.163.58:8877/0e473ba8e2e16b6/reftest-analyzer.html#web=eq.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with a rebase; thank you for improving this!
This removes the `DocumentInfoValidators` structure, and thus (slightly) simplifies the code overall. With these changes we only have to iterate through, and validate, the actually available Dictionary entries.
The call-sites are replaced by direct `typeof`-checks instead, which removes unnecessary function calls. Note that in the `src/`-folder we already had more `typeof`-cases than `isString`-calls.
9584e0e
to
99cd24c
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/d1c170e01f98a3b/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/c106c6a849b3ebb/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/d1c170e01f98a3b/output.txt Total script time: 3.40 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/c106c6a849b3ebb/output.txt Total script time: 6.21 mins
|
Re-factor the
PDFDocument.documentInfo
methodThis removes the
DocumentInfoValidators
structure, and thus (slightly) simplifies the code overall. With these changes we only have to iterate through, and validate, the actually available Dictionary entries.Remove the
isString
helper functionThe call-sites are replaced by direct
typeof
-checks instead, which removes unnecessary function calls. Note that in thesrc/
-folder we already had moretypeof
-cases thanisString
-calls.