zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BELUGA BEHR (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3020) Review of SyncRequestProcessor
Date Wed, 18 Apr 2018 23:44:00 GMT

             Summary: Review of SyncRequestProcessor
                 Key: ZOOKEEPER-3020
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3020
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: BELUGA BEHR
         Attachments: ZOOKEEPER.3020.1.patch

# Use {{ArrayDeque}} instead of {{LinkedList}}
# Use {{ThreadLocalRandom}} instead of {{Random}}
# Remove the 'running' flag - use the {{Thread#join}} facility to detect if the thread has
stopped running.  Using a flag can cause race condition issues and is superfluous.
# Make static final variable names in all caps
# General cleanup

This class is likely to be faster than Stack when used as a stack, and faster than LinkedList
when used as a queue.


This message was sent by Atlassian JIRA

View raw message