Skip to content

refactor: inline reflect append fast paths#87

Merged
xiaost merged 1 commit into
mainfrom
perf/append-map
Apr 6, 2026
Merged

refactor: inline reflect append fast paths#87
xiaost merged 1 commit into
mainfrom
perf/append-map

Conversation

@xiaost

@xiaost xiaost commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Add a focused append-map benchmark in append_map_fast_test.go and keep it with the fast-path coverage.

benchstat vs parent:

  • BenchmarkAppendMapFastPath/I64I64_64: 593.2ns -> 482.5ns (-18.67%)
  • BenchmarkAppendMapFastPath/StringString_64: 854.0ns -> 720.6ns (-15.61%)
  • BenchmarkAppendMapFastPath/BoolString_2: 78.82ns -> 54.41ns (-30.96%)
  • Geomean: -22.04%
  • Allocations unchanged at 0 B/op and 0 allocs/op

Add a focused append-map benchmark in append_map_fast_test.go and keep it with the fast-path coverage.

benchstat vs parent:
- BenchmarkAppendMapFastPath/I64I64_64: 593.2ns -> 482.5ns (-18.67%)
- BenchmarkAppendMapFastPath/StringString_64: 854.0ns -> 720.6ns (-15.61%)
- BenchmarkAppendMapFastPath/BoolString_2: 78.82ns -> 54.41ns (-30.96%)
- Geomean: -22.04%
- Allocations unchanged at 0 B/op and 0 allocs/op
@xiaost xiaost merged commit 88e3cae into main Apr 6, 2026
18 checks passed
@xiaost xiaost deleted the perf/append-map branch April 6, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants