[CONTROLLER-2012] Reconsider ImmutableUnsignedLongSet storage Created: 06/Nov/21  Updated: 11/Nov/21  Resolved: 06/Nov/21

Status: Resolved
Project: controller
Component/s: clustering
Affects Version/s: None
Fix Version/s: 3.0.13, 4.0.6, 2.0.10

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As of CONTROLLER-2011 we are using TreeSets to track ranges in ImmutableUnsignedLongSet, which has a different characteristic from ImmutableRangeSet, which is using an internal array.

This can be wasteful for small and/or highly-fragmented sets, due to TreeSet being internally a Red-Black Tree.

Implement an array-based immutable NavigableSet, which we can use as storage for small(ish) arrays.


Generated at Wed Feb 07 19:56:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.