umrndem opened a new pull request, #41716:
URL: https://github.com/apache/beam/pull/41716

   Fixes #22704.
   
   Reuse the incoming key and window encoding for hashing and equality checks 
in the Go combiner cache. Row and custom keys take this path; primitive keys 
keep their specialized hashing. The existing scratch buffers are reused. Clear 
the length-prefix encoder's buffer before each use so a failed partial encoding 
cannot affect the next lookup.
   
   Added regressions for encoding counts, windowed keys, collisions, length 
prefixes and encoding failures, plus cache-hit and cache-miss benchmarks. All 
30 Go core test packages and the exec/coderx race checks passed. Formatting and 
the upstream changelog validator run in isolation passed. Default go vet 
reports the same two existing warnings as master; the remaining analyzers 
passed.
   
   In six alternating benchmark pairs with Go 1.26.10 on CPU 2, row/custom 
cache hits took about 28–34% less time. Row hits went from 204.7 to 141.4 ns 
and custom hits from 1150.5 to 762.4 ns. Primitive hits stayed within 1%; cache 
misses took up to 8% more time. Custom cache-hit allocations fell from 21 to 
14. These are local cache microbenchmarks, not end-to-end pipeline timings.
   


-- 
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]

Reply via email to