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

Optimize save_report_lines a bit #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Swatinem
Copy link
Collaborator

This avoids some intermediate allocations in particular for a flag_map case, as well as avoiding another allocation.

In other cases its unfortunately not possible to avoid more intermediate allocations.

@Swatinem Swatinem self-assigned this Nov 14, 2024
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.52%. Comparing base (54cbaa6) to head (3319a51).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                   Coverage Diff                    @@
##           swatinem/codspeed-bench      #62   +/-   ##
========================================================
  Coverage                    98.52%   98.52%           
========================================================
  Files                           21       21           
  Lines                         6772     6775    +3     
========================================================
+ Hits                          6672     6675    +3     
  Misses                         100      100           
Components Coverage Δ
core 98.60% <100.00%> (+<0.01%) ⬆️
bindings 79.31% <ø> (ø)
python 100.00% <ø> (ø)

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

Copy link

codspeed-hq bot commented Nov 14, 2024

CodSpeed Performance Report

Merging #62 will not alter performance

Comparing swatinem/opt-save (7b80699) with main (06b8472)

Summary

✅ 4 untouched benchmarks

@Swatinem Swatinem force-pushed the swatinem/codspeed-bench branch from 54cbaa6 to 251cf8e Compare November 19, 2024 22:32
Base automatically changed from swatinem/codspeed-bench to main November 19, 2024 22:33
This avoids some intermediate allocations in particular for a `flag_map` case, as well as avoiding another allocation.

In other cases its unfortunately not possible to avoid more intermediate allocations.
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.

1 participant