Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha-1
-
None
-
None
-
Reviewed
Description
Use Collection.emptyList() for returning an empty list instead of return new ArrayList<> (). The default constructor creates a buffer of size 10 for ArrayList therefore, returning this static value saves on some memory and GC pressure and saves time not having to allocate a new internally buffer for each instantiation.
Attachments
Attachments
Issue Links
- is related to
-
HBASE-19675 Miscellaneous HStore Class Improvements
- Resolved