fallintoplace opened a new pull request, #2205: URL: https://github.com/apache/iceberg-go/pull/2205
**What** - Reuse path slices when `MemFS.WalkDir` adds directory entries. **Why** - This removes repeated `strings.Split` and `strings.Join` allocations for nested paths. **Implementation** - Derive each directory path from the stored key and keep the current traversal behavior. - Add nested-path benchmark and edge-case coverage. **Benchmark** - Isolated walk, 5,000 files and 8 levels: 16.24 ms -> 9.29 ms (about 43% faster); 102,245 -> 12,247 allocations (about 88% fewer). Go 1.23.2. -- 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]
