perf(db): make key flattening 2x faster with 1/3 allocs#3783
Conversation
|
Claude finished @rodrodros's task in 42s —— View job PR Review: perf(db) key flattening
Verdict: clean — LGTM. The rewrite of The logic is equivalent to the old
No blockers or important issues. Two nits (non-blocking, skip if you prefer):
Nice speedup on the dominant |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3783 +/- ##
==========================================
+ Coverage 75.39% 75.41% +0.02%
==========================================
Files 438 438
Lines 39463 39471 +8
==========================================
+ Hits 29753 29768 +15
+ Misses 7637 7634 -3
+ Partials 2073 2069 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
brbrr
left a comment
There was a problem hiding this comment.
LGTM! Noticed just a small typo in the comment.
|
Claude finished @rodrodros's task in 33s —— View job PR Review: perf(db) key flattening
Verdict: clean — LGTM. No blockers, important issues, or nits. The rewrite of
The benchmark ( |
Reduce unnecessary allocations, I suspect we can go even more to 0 allocations with fixed functions.
Summary: : 3→1 allocs, ~40–50% fewer bytes, and ~55% less time (geomean), strongest on the dominant single-felt call site.
NoKey(prefix only)SingleFeltPrefixPlusFeltTwoFeltsFourFeltsManyFelts(1000)