181c159c24
Motivation: Currently in the single threaded and global event executors when the scheduled task queue is drained, there is a call to hasScheduledTasks(). If there are scheduled tasks then the the code polls the queue for tasks. The poll method duplicates the exact logic of hasScheduledTasks(). This involves two calls to nanoTime when one seems sufficient. Modifications: Directly poll the queue for tasks and break if the task returned is null. Result: Should be no noticeable impact on functionality. Two calls to nanoTime have been coarsened into a single call. |
||
---|---|---|
.. | ||
src | ||
pom.xml |