Investigate use of merging algorithm for ordered multi accumulators

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QE 2021-11-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, AccumulatorN::processInternal naively combines elements one at a time when merging partial results (e.g inserting each element one at a time). For $firstN/$lastN, this is ok, but in the case of the ordered accumulators, we can potentially improve this using the 'merge sorted lists' algorithm. This task should investigate whether this algorithm provides any perf benefits (we should explore this after we have perf coverage for all of the ordered accumulators).

      For small 'n' (i.e. n <= 10), this might not make a big difference, but for larger 'n', it could save some work.

            Assignee:
            Mihai Andrei
            Reporter:
            Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: