Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Not A Problem
-
3.0.0
-
None
-
None
-
Patch
Description
- Use ArrayDeque instead of LinkedList
- Replace an ArrayList that was being used as a queue with ArrayDeque
- Improve write single byte method to hard-code sizes and save time
Resizable-array implementation of the Deque interface. Array deques have no capacity restrictions; they grow as necessary to support usage. They are not thread-safe; in the absence of external synchronization, they do not support concurrent access by multiple threads. Null elements are prohibited. This class is likely to be ... faster than LinkedList when used as a queue.
Attachments
Attachments
Issue Links
- depends upon
-
HADOOP-15146 Remove DataOutputByteBuffer
- Resolved