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

   # Which issue does this PR close?
   
   This is a small performance improvement for the thrift remodeling
   
   - Part of https://github.com/apache/arrow-rs/issues/5853.
   
   # Rationale for this change
   
   Some of the often-called methods in the thrift protocol implementation 
created `ParquetError` instances with a string message that had to be allocated 
and formatted. This formatting code and probably also some drop glue bloats 
these otherwise small methods and prevented inlining.
   
   # What changes are included in this PR?
   
   Introduce a separate error type `ThriftProtocolError` that is smaller than 
`ParquetError` and does not contain any allocated data. The `ReadThrift` trait 
is not changed, since its custom implementations actually require the more 
expressive `ParquetError`.
   
   # Are these changes tested?
   
   The success path is covered by existing tests. Testing the error paths would 
require crafting some actually malformed files, or using a fuzzer.
   
   # Are there any user-facing changes?
   
   The `ThriftProtocolError` should be internal and not exposed in the public 
api.
   
   There is a TODO about making sure the error messages stay the same.
   


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