Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14786

Investigate adding an operation to allocate n rows at the same time

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Memory Manager
    • Labels:
      None
    • Compatibility:
      Minor

      Description

      There could be some advantage in allocating up to n allocations each time the memory manager is called. There would be no need to lock/unlock the critical sections for the heap, and could quickly iterate to allocate extra rows from the current block if there was any space left.

      The code could be hidden behind the implementation of the fixed size heap allocator, so that it was invisible to the engines.

      The potential disadvantage is more rows that are held onto, and possibly never released. If the change proved to be benefical the heap allocator could be extended with a flush() function to help in that situation (but need to be careful of thread safety).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anybody Available for anyone
                Reporter:
                ghalliday Gavin Halliday
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: