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

TST: read_string_from_stream performance #1355

Merged

Conversation

mergezalot
Copy link
Contributor

There is a saftey margin of a factor of 10 in both directions, so the test should be fairly stable. Tests #1350.

There is a saftey margin of a factor of 10 in both directions,
so the test should be fairly stable. Tests py-pdf#1350.
@mergezalot
Copy link
Contributor Author

mergezalot commented Sep 20, 2022

Hello @MartinThoma,

i did manage to create a test-pdf (attached to #1350), but ended up writing a more minimal unit test. Would you prefer a test with that test-pdf, or do you prefer this unit test?

cheers

edit: 😬 ok turns out the safety-margin was not enough to make the test stable. It took 2.8 seconds on the build agent.

I am not convinced this test helps more than it hurts...

@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Base: 94.71% // Head: 94.71% // No change to project coverage 👍

Coverage data is based on head (208591f) compared to base (141a765).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1355   +/-   ##
=======================================
  Coverage   94.71%   94.71%           
=======================================
  Files          30       30           
  Lines        5185     5185           
  Branches     1061     1061           
=======================================
  Hits         4911     4911           
  Misses        164      164           
  Partials      110      110           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MartinThoma MartinThoma changed the title Test read_string_from_stream performance TST: read_string_from_stream performance Sep 25, 2022
@MartinThoma MartinThoma merged commit 30a9e68 into py-pdf:main Sep 25, 2022
MartinThoma added a commit that referenced this pull request Sep 25, 2022
New Features (ENH):
-  Addition of optional visitor-functions in extract_text() (#1252)
-  Add metadata.creation_date and modification_date (#1364)
-  Add PageObject.images attribute (#1330)

Bug Fixes (BUG):
-  Lookup index in _xobj_to_image can be ByteStringObject (#1366)
-  \'IndexError: index out of range\' when using extract_text (#1361)
-  Errors in transfer_rotation_to_content() (#1356)

Robustness (ROB):
-  Ensure update_page_form_field_values does not fail if no fields (#1346)

Testing (TST):
-  read_string_from_stream performance (#1355)

Full Changelog: 2.10.9...2.11.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.

2 participants