andygrove opened a new pull request, #4902:
URL: https://github.com/apache/datafusion-comet/pull/4902

   > This PR was created by an LLM as a draft PR. I will mark it as ready for 
review after human review.
   
   
   ## Which issue does this PR close?
   
   N/A — autonomous exploratory PR.
   
   ## Rationale for this change
   
   escape_string now returns Cow (zero-alloc borrow when nothing needs 
escaping) and bulk-copies unescaped byte runs instead of allocating and pushing 
char-by-char per string value in to_json.
   
   ## What changes are included in this PR?
   
   escape_string now returns Cow (zero-alloc borrow when nothing needs 
escaping) and bulk-copies unescaped byte runs instead of allocating and pushing 
char-by-char per string value in to_json.
   
   ## How are these changes tested?
   
   Correctness: unit tests + seeded differential fuzz (bit-identical Arrow 
output vs `main`).
   
   Benchmark (criterion):
   
   - to_json: 56.164% faster (base 757921ns -> cand 332246ns)
   
   
   


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

Reply via email to