[CONTROLLER-2014] Improve UnsignedLongSet allocation rate Created: 08/Nov/21  Updated: 11/Nov/21  Resolved: 08/Nov/21

Status: Resolved
Project: controller
Component/s: clustering
Affects Version/s: None
Fix Version/s: 3.0.13, 4.0.7, 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   

Our UnsignedLongSet implementation introduced in CONTROLLER-1720 performs quite nicely, but end up allocating subsets and iterators. We can do better by:

  • using NavigableSet.floor() in UnsignedLongSet.contains()
  • using NavigableSet.higher() in MutableUnsignedLongSet.add()

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