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

iterative algorithm for take_value #134

Merged
merged 6 commits into from
Sep 10, 2024
Merged

iterative algorithm for take_value #134

merged 6 commits into from
Sep 10, 2024

Conversation

davidhewitt
Copy link
Collaborator

Similar to #111, but for real work in take_value. If this adds a perf boost I can apply the same design to the Python functions too...

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 95.18072% with 8 lines in your changes missing coverage. Please review.

Project coverage is 94.01%. Comparing base (dd25fd0) to head (08b4cd3).

Files with missing lines Patch % Lines
crates/jiter/src/value.rs 95.18% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
- Coverage   94.91%   94.01%   -0.91%     
==========================================
  Files          12       12              
  Lines        1908     2038     +130     
==========================================
+ Hits         1811     1916     +105     
- Misses         97      122      +25     
Files with missing lines Coverage Δ
crates/jiter/src/lazy_index_map.rs 85.22% <ø> (-12.76%) ⬇️
crates/jiter/src/value.rs 94.26% <95.18%> (-2.85%) ⬇️

Continue to review full report in Codecov by Sentry.

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

Copy link

codspeed-hq bot commented Sep 10, 2024

CodSpeed Performance Report

Merging #134 will degrade performances by 10.97%

Comparing dh/iterative-take (546c4df) with main (dd25fd0)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 71 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main dh/iterative-take Change
pass2_jiter_value 22.1 µs 17.1 µs +29.51%
x100_jiter_skip 1.2 µs 1.3 µs -10.97%

@davidhewitt davidhewitt marked this pull request as ready for review September 10, 2024 10:48
@davidhewitt
Copy link
Collaborator Author

The slowdown is probably an inlining loss in unrelated code which can be recovered by PGO. The +24% seems very real.

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@samuelcolvin samuelcolvin merged commit 754395c into main Sep 10, 2024
65 of 66 checks passed
@samuelcolvin samuelcolvin deleted the dh/iterative-take branch September 10, 2024 15:03
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