eclipse-collections
eclipse-collections copied to clipboard
Optimize TreeSortedMap by pre-sizing result collections.
- Pre-size TreeSortedMap.take/drop.
- Pre-size AbstractMutableSortedMap.zip.
- Don't pre-size AbstractMutableSortedMap.select/reject/collectIf.
Has anyone started work on this yet? If not, I'd like to take a look at it.
Thanks @johnjstuart ! I've assigned the issue to you.
After some investigation it looks like TreeSortedMap is backed by the JDK TreeMap, which (correct me if I'm wrong) is not pre-sizeable. AbstractMutableSortedMap.zip seems to be already pre-sized to me. As far as I can tell this issue can be closed without a PR.