Signal-iOS/SignalServiceKit/tests
George Nachman 36119e4367 Introduce Refinery to help batch DB queries.
This PR is the first in a series that will
optimize looking up full names of group members.

The biggest source of slowness when opening a
group chat is looking up the full names of group
members in the search for duplicates. It is slow
because it requires multiple db queries for each
member.

The characterstic feature of this algorithm is the
iterative process of assigning names to signal
addresses. For example, some contacts' names may
be cached. For others, their profiles must be
fetched. For those without profiles, their phone
numbers must be formatted (which requires fetching
SignalAccounts). For those without phone numbers,
their user names must be formatted.

This PR creates a class called Refinery. Its job
is to make it easy to assign values to keys
through multiple passes, where each pass may
succeed only for a subset of keys.

This is useful because we will eventually issue a
single DB query for some of these passes.
2022-03-04 10:44:07 -08:00
..
Account Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Contacts Fix broken tests 2022-03-03 14:23:51 -08:00
Devices Deprecate REST, Part 1 2021-08-18 14:25:36 -03:00
Groups Rework the 'pending member requests and invites' view. 2020-09-03 18:33:07 -03:00
Messages Fix broken tests 2022-03-03 14:23:51 -08:00
Network Simplify AFNetworking usage. 2021-10-15 10:50:37 -03:00
Security Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Storage Fix broken tests 2022-03-03 14:23:51 -08:00
Util Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
SSKBaseTestObjC.h Respond to CR. 2021-10-21 09:21:31 -03:00
SSKBaseTestObjC.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
SSKBaseTestSwift.swift Remove YapDatabase. 2021-03-25 11:41:16 -03:00
SSKSwiftTests.swift Convert to just using CocoaPods for dependencies 2020-01-02 12:03:57 -08:00