Zehua Zou created ORC-2029:
------------------------------
Summary: support Float fast read by memcpy in DoubleColumnReader
Key: ORC-2029
URL: https://issues.apache.org/jira/browse/ORC-2029
Project: ORC
Issue Type: Improvement
Reporter: Zehua Zou
{code:cpp}
uint64_t bufferNum = 0;
if (isLittleEndian) {
bufferNum = std::min(numValues,
static_cast<size_t>(bufferEnd_ - bufferPointer_) /
bytesPerValue_);
uint64_t bufferBytes = bufferNum * bytesPerValue_;
if (bufferBytes > 0) {
memcpy(outArray, bufferPointer_, bufferBytes);
bufferPointer_ += bufferBytes;
}
}
{code}
There is a fast read path when columnKind of `DoubleColumnReader` is `DOUBLE`.
`Float` can use the same logic when `ValueType` is `float`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)