belugabehr opened a new pull request, #3705:
URL: https://github.com/apache/avro/pull/3705

   ## What is the purpose of the change
   
   This pull improves write performance as DataFileWriter wraps its output in a 
BufferedFileOutputStream that uses the default 8KB BufferedOutputStream buffer. 
The default sync interval was increased from 16KB to 64KB in AVRO-1398 but the 
output buffer was never adjusted. Since block data far exceeds 8KB, each block 
write results in multiple write syscalls and flushes instead of one.
   
   This change sizes the output buffer to fit a complete block frame 
(compressed data + varint headers + sync marker) so that all writes accumulate 
and flush in a single syscall, fixing AVRO-4240.
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? (yes / no) no
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / 
not documented) JavaDoc
   


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