• Richard Braakman's avatar
    [performance] Schedule resolveAddress immediately · e2ab0615
    Richard Braakman authored
    resolveAddress requests are done with one query at a time, in
    order to correlate the results with the looked-up addresses.
    Doing them sequentially via UpdateRequest events added a lot
    of overhead in the form of coordination between threads.
    This commit creates a dedicated QContactFetchRequest for each
    resolveAddress call, so that the events for starting them can
    arrive all together in the backend thread and the events
    announcing the results can arrive all together in the UI thread.
    They will still be processed sequentially, but this change cuts
    out the delay between finishing one request and starting the next.
    In tests with 10k contacts and a recent contacts list with limit=20,
    this reduced the resolve time from 1s to 0.3s.
seasidecache.h 18.3 KB