model-writtenrun 9927 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrei Lepikhov proposed unpacking short-header numerics into stack buffers to avoid repeated allocations, supplying comparison and hashing changes plus an extension to other operations and reporting typical improvements of 15–30% #1.
- David Geier described his independently developed approach of operating directly on packed values with memcpy-based reads for alignment safety, shared a benchmark script, and warned that repeated representation checks in macros could undermine the gains #2.
- Andrei considered the approaches complementary, shared a separate draft for equality and inequality without unpacking, and described a planned 128-bit aggregate accumulator that was not yet ready for publication; he also requested David’s patch for comparison #3.
- David supplied his broad packed-data implementation, requested reproducible comparisons against the stack-buffer approach, and reported strong x86 results but some M5 regressions that motivated centralizing representation decoding #4.
- David then shared Ryzen benchmark results showing both gains and regressions, corrected the benchmark script, and supplied a smaller prototype demonstrating centralized parsing in init_var_from_num(), with comparison-related callers illustrating the intended design #5.
- Andrei asked which compiler David used and described his own cross-platform testing and GCC memcpy workarounds #6.
- David identified GCC 15.2.0 as his benchmark compiler and emphasized that performance must hold without a compiler flag absent from upstream PostgreSQL; Andrei supplied references for the x86 GCC issue and reported no corresponding regression with GCC 16 #7 #8.
- After CFBot picked up David’s prototype and numeric regression tests failed across platforms, Andrei identified a likely NUMERIC_POS versus NUMERIC_PINF error in cmp_numerics() and reposted his unchanged local-buffer series rebased onto current master to restore the Commitfest entry’s focus #9.
- Andrei requested that experimental alternatives avoid CFBot pickup and suggested a separate thread and Commitfest entry; David agreed to open a new thread, leaving the local-buffer series under evaluation here with no linked commit and comparative performance still unresolved #9 #10.