Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix perf of fetching the same events many times. #10703

Merged
merged 3 commits into from
Aug 27, 2021

Commits on Aug 26, 2021

  1. Fix perf of fetching the same events many times.

    The code to deduplicate repeated fetches of the same set of events was
    N^2 (over the number of events requested), which could lead to a process
    being completely wedged.
    
    The main fix is to deduplicate the returned deferreds so we only await
    on a deferred once rather than many times. Seperately, when handling the
    returned events from the defrered we only add the events we care about
    to the event map to be returned (so that we don't pay the price of
    inserting extraneous events into the dict).
    erikjohnston committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    0838727 View commit details
    Browse the repository at this point in the history
  2. Newsfile

    erikjohnston committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    9583837 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Apply suggestions from code review

    Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
    erikjohnston and richvdh authored Aug 27, 2021
    Configuration menu
    Copy the full SHA
    a59fe07 View commit details
    Browse the repository at this point in the history