[
https://issues.redhat.com/browse/JGRP-2492?page=com.atlassian.jira.plugin...
]
Bela Ban commented on JGRP-2492:
--------------------------------
The ultimate solution would be to reactive the hashwheel based timer, plus get rid of
tasks which compute their execution delay every time (\{{RecurringTask}}) they're
executed: the random execution time could be computed *once* (at startup), and then be
used as a fixed interval (or delay) for subsequent executions.
TimeScheduler3.add() gets more expensive as the queue size grows
----------------------------------------------------------------
Key: JGRP-2492
URL:
https://issues.redhat.com/browse/JGRP-2492
Project: JGroups
Issue Type: Bug
Affects Versions: 4.2.4
Reporter: Dan Berindei
Assignee: Bela Ban
Priority: Minor
Fix For: 5.0.0.Final
{{TimeScheduler3.add()}} calls {{removeCancelledTasks()}}, which ends up calling
{{DelayQueue.toArray()}} (because {{DelayQueue}} doesn't support directly iterating
over its contents).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)