neilconway opened a new pull request, #10954:
URL: https://github.com/apache/arrow-rs/pull/10954

   # Which issue does this PR close?
   
   - N/A; motivated by the performance regression in #10850
   
   # Rationale for this change
   
   `decimal` did not have benchmark coverage for end-to-end CSV or JSON 
parsing; also, the `parse_decimal` microbenchmark had unrepresentative branch 
predictor behavior.
   
   <!--
   Why are you proposing this change? If this is already explained clearly in 
the issue then this section is not needed.
   Explaining clearly why changes are proposed helps reviewers understand your 
changes and offer better suggestions for fixes.
   -->
   
   # What changes are included in this PR?
   
   * Add benchmark for parsing CSV with a decimal field
   * Add benchmark for parsing JSON with a decimal field
   * Improve the `parse_decimal` microbenchmark to generate a set of random 
strings to parse, rather than repeatedly parsing the same string. Repeatedly 
parsing the same string is not representative of real-world workloads; in 
particular, it gives the branch predictor an artificial boost, which can hide 
constructs that will poorly poorly in more realistic scenarios due to poor 
branch prediction.
   
   # Are these changes tested?
   
   Yes.
   
   # Are there any user-facing changes?
   
   No.
   
   # AI usage
   
   Developed with Claude Code, Fable 5.1. I revised and understand the 
resulting code.


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