Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-458

DirectBufferPool should expose an "IBufferAccess" object

    Details

    • Type: New Feature
    • Status: Done
    • Resolution: Done
    • Affects Version/s: QUADS_QUERY_BRANCH
    • Fix Version/s: None
    • Component/s: Other

      Description

      The DirectBufferPool needs to implement logic internally to prevent the application from returning the same buffer object more than once to a pool and to prevent the application from returning a buffer to a pool from which it was not allocated. It currently implements logic for these purposes. However, because hashCode() and equals() for ByteBuffer are defined in terms of the data in the buffer, this requires a scan of a linked hash map with O cost.

      The API for the DirectBufferPool should be modified to accept and return a wrapper interface which provides access to the buffer and which can be used internally to provide O(1) management for the pool's internal state.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        Martyn, would you please take this one on? Thanks, Bryan

        Show
        bryanthompson bryanthompson added a comment - Martyn, would you please take this one on? Thanks, Bryan

          People

          • Assignee:
            martyncutcher martyncutcher
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: