Francesco Nigro created DISPATCH-1371:
-----------------------------------------

             Summary: qd_alloc can reuse instances in LIFO order
                 Key: DISPATCH-1371
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1371
             Project: Qpid Dispatch
          Issue Type: Improvement
    Affects Versions: 1.8.0
            Reporter: Francesco Nigro


qd_dealloc is inserting instances on the tail of the thread local free_list 
while qd_alloc is reading from the head, always causing cache misses unless 
free_list size is 1.
qd_alloc could instead reuse the last inserted instance ie the tail, using 
free_list as a stack (with LIFO accesses).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to