Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1371

qd_alloc can reuse instances in LIFO order

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nigro.fra@gmail.com Francesco Nigro
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: