Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4057

NIOServerCnxnFactory.selectorThreads,using List instead of HashSet is better

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      private final Set<SelectorThread> selectorThreads = new HashSet<SelectorThread>();
      

      Using List costs less memory and computing than HashSet.

      private final List<SelectorThread> selectorThreads = new ArrayList<>();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lan_ok LiAoNan

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                  Issue deployment