Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Reviewed
-
Remove invisible synchronization primitives from DataInputBuffer
Description
Writable deserialization is slowing down due to a synchronized block within DataInputBuffer$Buffer.
ByteArrayInputStream::read() is synchronized and this shows up as a slow uncontested lock.
Hive ships with its own faster thread-unsafe version with hive.common.io.NonSyncByteArrayInputStream.
The DataInputBuffer and Writable deserialization should not require a lock per readInt()/read().
Attachments
Attachments
Issue Links
- relates to
-
TEZ-2605 [Umbrella] CPU optimizations for hotspots
- Open