Signal-iOS/Signal/test/util
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
..
FTS Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
BatchUpdateTest.swift Clean up ahead of PR. 2021-08-23 18:22:43 -03:00
ByteParserTest.swift Small improvements around payments. 2021-04-06 13:57:06 -03:00
DateUtilTest.swift Improve perf of CVC date math. 2021-09-08 15:04:26 -03:00
DisplayableTextFilterTest.swift Fix linting issues 2021-08-18 16:12:31 -07:00
EmojiTests.swift Fix emoji / CoreText crash. 2021-08-06 12:21:18 -03:00
ExceptionsTest.h Respond to CR. 2021-10-21 09:21:31 -03:00
FunctionalUtilTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
GRDBFinderTest.swift Rework user profile writes. 2021-06-18 13:46:39 -03:00
GroupAndContactStreamTest.swift Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
MiscTest.swift Fix chat color stability. 2021-05-25 16:22:34 -03:00
OWSOrphanDataCleanerTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
OWSScrubbingLogFormatterTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
ProtoParsingTest.m Add script to normalize includes and imports. 2021-10-21 09:21:12 -03:00
QRCodeParserTest.swift Revert "Restore ZXing" 2021-07-28 12:08:34 -07:00
RemoteAttestationSigningCertificateTest.m Consolidate Remote Attestation logic 2019-06-18 19:05:12 -07:00
StringAdditionsTest.swift Respond to CR. 2021-02-24 18:08:59 -03:00
UtilTest.h Respond to CR. 2021-10-21 09:21:31 -03:00
UtilTest.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00