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

   # Which issue does this PR close?
   
   - N/A
   
   # Rationale for this change
   
   We previously went through `write!` when displaying Boolean values, which 
goes through the general-purpose formatting machinery. It is a one-liner to 
special-case Boolean values instead. This speeds up CSV output and pretty 
printing.
   
   Benchmark: (M4 Max)
   
   * `format_boolean/random`: 96.0 µs -> 77.6 µs, −19.8%
   
   # What changes are included in this PR?
   
   * Optimize display for Boolean values
   * Add benchmark
   
   # Are these changes tested?
   
   Yes, covered by existing tests.
   
   # Are there any user-facing changes?
   
   No.
   
   # AI usage
   
   Developed with Claude Code (Opus 5.5). I have reviewed 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