Signal-iOS/Signal/test
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
..
Assets Preserve orientation when stripping image metadata 2021-02-11 10:10:16 -08:00
attachments Simplify AFNetworking usage. 2021-10-15 10:50:37 -03:00
contact Lint 2022-02-22 12:41:27 -08:00
Groups Convert to new Promise library 2021-09-03 11:41:34 -07:00
mocks Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Models Change phone number. 2021-11-19 14:28:18 -03:00
Payments Fix broken test. 2021-11-18 22:51:37 -03:00
PerformanceTests Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
SSKTests Add Codable adherance to proto wrappers 2020-07-22 14:34:24 -07:00
Supporting Files iOS 9 Support 2015-10-31 04:45:55 +01:00
util Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
ViewControllers Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
views/ImageEditor Add SignalUI framework target. 2021-10-19 09:39:54 -03:00
PhoneNumberValidatorTest.swift Fixing up phonenumber parsing tests 2019-10-25 18:33:56 -07:00
SignalBaseTest.h Revert header import fix. 2021-07-20 16:43:17 -07:00
SignalBaseTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
SignalBaseTest+Swift.swift Rework dependency access. 2021-03-25 09:24:27 -03:00
SignalTests-Bridging-Header.h Respond to CR. 2021-10-21 09:21:31 -03:00
TestUtil.h Rework creation of singletons. 2018-09-19 15:11:26 -04:00