Skip to content

Long startup times #23

@MrCyjaneK

Description

@MrCyjaneK

After adding ~400 images (in total around 1.5GB) of images app startup is long and takes about 5 seconds (there are no images displayed on the screen nor any images are loaded in cache. In fact nothing except

String storageLocation = (await getApplicationDocumentsDirectory()).path;
await FastCachedImageConfig.init(
  subDir: "$storageLocation.imgs-cache",
  clearCacheAfter: const Duration(days: 31),
);

is being done with FastCachedImage library.
After wiping app data and cache everything returns to normal.
I expect to have even more images in cache (more than could possibly fit in ram) and I worry about the startup time and possible crashes. I didn't have that problems with cached_network_image package before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature requiredNeed a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions