When you open a chat if there is no inputToolbar then applyTheme() will call ensureBannerState(). Unfortunately, ensureBannerState() is very slow because of group name collision finding. This commit avoids doing the search twice in this case. I considered changing ConverationViewController so that it will not duplicate the effort of GroupMembershipNameCollisionFinder when nothing has changed. I still want to do that, but it's a much larger task. Impact: This reduces database queries when opening the MobileCoin group from 11,216 to 6,669—a 40% reduction! |
||
|---|---|---|
| .. | ||
| AudioFiles | ||
| Fonts | ||
| Images.xcassets | ||
| Lottie | ||
| NSE-Images.xcassets | ||
| Settings.bundle | ||
| Sounds | ||
| src | ||
| test | ||
| translations | ||
| .swiftlint.yml | ||
| iTunesArtwork@3x.png | ||
| main.m | ||
| Signal-AppStore.entitlements | ||
| Signal-Info.plist | ||
| Signal-Prefix.pch | ||
| Signal.entitlements | ||
| SignalTSan.supp | ||
| SignalUBSan.supp | ||