beliefer opened a new pull request, #38046: URL: https://github.com/apache/spark/pull/38046
### What changes were proposed in this pull request? As we know, `UnsafeRow` stores each field with 8 bytes or Long. `UnsafeRow` supports read and store `CalendarInterval`. After my investigation, `getLong`/`putLong` of `Platform` have better performance than call `getInt`/`putInt` of `Platform` twice. This PR combines two int field `months` and `days` of `CalendarInterval` to a long value. So we could call `getLong` or `putLong` once. ### Why are the changes needed? Improve the performance of `setInterval` & `getInterval` for `UnsafeRow`. ### Does this PR introduce _any_ user-facing change? 'No'. Just update the underlying implementation. ### How was this patch tested? New micro benchmark. -- 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]
