chrisdutz opened a new pull request, #19176:
URL: https://github.com/apache/iotdb/pull/19176

   ## Description
   
   With RPC compression enabled, `TabletEncoder` wrote PLAIN-encoded time and 
value columns through `PlainEncoder`. That costs one synchronized 
`ByteArrayOutputStream.write(int)` call per byte, so eight calls per `long` or 
`double`.
   
   The time column and INT64, TIMESTAMP, DOUBLE, FLOAT and BOOLEAN value 
columns are now filled into one `ByteBuffer` and written at once. The bytes are 
identical:
   
   - big-endian;
   - a null repeats the last value;
   - a null before the first value writes 0.
   
   Other types and encodings take the existing path.
   
   ## Tests
   
   The new `TabletEncoderPlainTest` encodes random tablets, with nulls and NaN, 
through both paths and compares the bytes.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-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