fallintoplace opened a new pull request, #2200: URL: https://github.com/apache/iceberg-go/pull/2200
**What** - Reuse partition path formatting plans in snapshot summaries. **Why** - Partition types and formatting fields are rebuilt for every file. **Implementation** - Cache one formatting plan per partition spec. - Reuse a borrowed partition record. **Benchmark** - Median of 5 samples on Apple M1 Pro, Go 1.26.3. Baseline → cached: - 1 field: 399 → 129 ns/op, 288 → 48 B/op, 6 → 2 allocs/op (3.1x) - 3 fields: 957 → 316 ns/op, 768 → 112 B/op, 6 → 2 allocs/op (3.0x) - 16 fields: 4,604 → 1,351 ns/op, 4,348 → 476 B/op, 12 → 8 allocs/op (3.4x) - 64 fields: 17,005 → 5,481 ns/op, 16,156 → 1,916 B/op, 60 → 56 allocs/op (3.1x) Command: `go test ./table -run '^$' -bench '^BenchmarkSnapshotSummaryPartitionPath$' -benchmem -benchtime=1s -count=5 -cpu=1` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
