Description
In StringHashTableDictionary, there is an internal buffer called newKey.
See if this can be removed. When calling set on newKey, there is actually a buffer copy performed:
So, for the method StringHashTableDictionary#add(byte[],int,int) the byte array is copied into the newKey and then it is copied into itself again in StringHashTableDictionary#add(Text). See if it can be removed, but at least remove it from the StringHashTableDictionary#add(Text) method. The input can be acted on directly since the Text object will not be modified.
Attachments
Issue Links
- is blocked by
-
ORC-830 Do Not Copy String When Adding to StringHashTableDictionary
- Resolved
- links to