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

Improve getting bolds and italics performance #133

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

KennyChenBasis
Copy link
Contributor

Mitigate #132. This speeds up most of the time spent in BOLD_ITALIC_FINDITER, but get_bolds_and_italics is still the largest bottleneck in plain_text on the Belgium benchmark.

BOLD_ITALIC_FINDITER is ~10x slower with the $ alternative, so we
manually find line ends instead.
Copy link

codecov bot commented Apr 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3885a82) to head (b1830b8).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #133   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         2231      2233    +2     
=========================================
+ Hits          2231      2233    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@5j9 5j9 merged commit b7f0d04 into 5j9:main Apr 11, 2024
20 checks passed
@5j9
Copy link
Owner

5j9 commented Apr 11, 2024

Ingenious and with significant improvement! Thank you!

@KennyChenBasis KennyChenBasis deleted the improve-bold-and-italics-performance branch April 11, 2024 14:26
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

2 participants