You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/25 20:43:00 UTC

[jira] [Commented] (DISPATCH-1274) Optimize qd_timer_schedule(0)

    [ https://issues.apache.org/jira/browse/DISPATCH-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17404708#comment-17404708 ] 

ASF GitHub Bot commented on DISPATCH-1274:
------------------------------------------

kgiusti opened a new pull request #1350:
URL: https://github.com/apache/qpid-dispatch/pull/1350


   Historically the qd_server_t and the timer subsystem have shared a
   single mutex. There is no technical reason for this as each use the
   lock to protect entirely separate critial sections.
   
   Recent analysis of lock usage shows that the timer subsystem makes
   heavy use of the lock.  This patch introduces separate locks as to
   avoid any contention between the qd_server_t and timer operations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Optimize qd_timer_schedule(0) 
> ------------------------------
>
>                 Key: DISPATCH-1274
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1274
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Container
>    Affects Versions: 1.5.0
>            Reporter: Alan Conway
>            Assignee: Ken Giusti
>            Priority: Major
>
> qd_timer_schedule() uses the general timeout mechanisms which includes checking system time (on schedule and on PN_PROACTOR_TIMEOUT wakeup) and adding/removing work items from sorted list. Optimize the schedule(0) case as a simple work_list using pn_proactor_interrupt() for wakeups.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org