mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Switch to lazyBox
This commit is contained in:
parent
d310c77fc8
commit
d08475d5af
6 changed files with 23 additions and 22 deletions
|
|
@ -37,8 +37,14 @@ void main() async {
|
|||
await Hive.openBox<HiveBackupAlbums>(hiveBackupInfoBox);
|
||||
await Hive.openBox(hiveGithubReleaseInfoBox);
|
||||
await Hive.openBox(userSettingInfoBox);
|
||||
await Hive.openBox(assetListCacheBox);
|
||||
await Hive.openBox(albumListCacheBox);
|
||||
|
||||
final sw = Stopwatch();
|
||||
sw.start();
|
||||
|
||||
await Hive.openLazyBox(assetListCacheBox);
|
||||
await Hive.openLazyBox(albumListCacheBox);
|
||||
|
||||
debugPrint("Hive box open took ${sw.elapsedMilliseconds} ms");
|
||||
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
const SystemUiOverlayStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue