Repository navigation
perf(tok): pre-size terms slice in uniqueTerms - #9724
Conversation
c001ab6 to
8cbabea
Compare
8cbabea to
04c09bf
Compare
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Pre-size the terms slice to len(tokens) instead of growing from nil. Also un-skips BenchmarkTermTokenizer with a real workload. BenchmarkTermTokenizer: allocs -24% geomean, B/op -14% geomean.
04c09bf to
b340bc4
Compare
Pre-size the
termsslice tolen(tokens)instead of growing from nil. Also un-skipsBenchmarkTermTokenizerwith a real workload.BenchmarkTermTokenizer: allocs -24% geomean, B/op -14% geomean.Independent change; branched from
4b9b399d. Verified: package unit tests pass + Go benchmark (benchstat, p<0.01). Single-thread microbenchmarks; not yet run through the Docker integration suite.Summary by CodeRabbit