Skip to content
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

PI: Remove ord_ calls #1014

Merged
merged 1 commit into from Jun 19, 2022
Merged

PI: Remove ord_ calls #1014

merged 1 commit into from Jun 19, 2022

Conversation

MartinThoma
Copy link
Member

@MartinThoma MartinThoma commented Jun 19, 2022

Now that we have Python 3, we have bytes always at this point. This means the ord_ call is no longer necessary.

For #68 this should result in ~4% less work as 291 Million calls to this function are NOT made.

@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #1014 (a3b4bac) into main (6b9f472) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1014   +/-   ##
=======================================
  Coverage   89.30%   89.30%           
=======================================
  Files          24       24           
  Lines        4443     4443           
  Branches      921      921           
=======================================
  Hits         3968     3968           
  Misses        323      323           
  Partials      152      152           
Impacted Files Coverage Δ
PyPDF2/generic.py 91.25% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56158e0...a3b4bac. Read the comment docs.

@MartinThoma MartinThoma merged commit 4c9fd44 into main Jun 19, 2022
@MartinThoma MartinThoma deleted the ord-calls branch June 19, 2022 20:23
MartinThoma added a commit that referenced this pull request Jun 26, 2022
New Features (ENH):
-  Support R6 decrypting (#1015)
-  Add PdfReader.pdf_header (#1013)

Performance Improvements (PI):
-  Remove ord_ calls (#1014)

Bug Fixes (BUG):
-  Fix missing page for bookmark (#1016)

Robustness (ROB):
-  Deal with invalid Destinations (#1028)

Documentation (DOC):
-  get_form_text_fields does not extract dropdown data (#1029)
-  Adjust PdfWriter.add_uri docstring
-  Mention crypto extra_requires for installation (#1017)

Developer Experience (DEV):
-  Use /n line endings everywhere (#1027)
-  Adjust string formatting to be able to use mutmut (#1020)
-  Update Bug report template

Full Changelog: 2.3.1...2.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant