Signal-iOS/SignalUI
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
..
Appearance improve ContactsManagerCache performance (#4026) 2022-03-03 09:30:31 +01:00
Categories Remove UIScrollView workaround that was only used in iOS 11.0-11.2 2022-01-31 15:15:18 -08:00
Environment Drop Starscream dependency 2022-02-22 12:41:04 -08:00
Payments Cleanup old feature flags 2022-01-24 10:53:55 -08:00
SignalUI.docc Add SignalUI framework target. 2021-10-19 09:39:52 -03:00
UI Respond to CR. 2021-10-21 09:21:31 -03:00
Utils Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
ViewControllers Slightly tweak position of photos/videos in media editor. 2022-03-02 17:58:40 -08:00
ViewModels enhanced logging for better/automated performance analysis (#4039) 2022-03-03 08:15:40 +01:00
Views Initial commit for redesigned in-app camera. 2022-03-02 17:56:39 -08:00
Wallpapers Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
SignalUI-Prefix.pch Respond to CR. 2021-10-21 09:21:33 -03:00
SignalUI.h Change phone number. 2021-11-19 14:28:18 -03:00