This can improve the start-up time of apps. The three big db reads on init are loading account data, rooms and device keys. This makes it now possible to let them run parallel (while it may depend on platform if this has any effect) and the init() method can skip awaiting them. They will be at least awaited before handling the first received sync. So the app can already display the room list before device keys are loaded and request the first sync from the server before anything else is loaded from the DB. |
||
|---|---|---|
| .. | ||
| encryption | ||
| src | ||
| encryption.dart | ||
| matrix.dart | ||