Skip to content

Store metadata in alternative structure to increase initialization performance. #236

Open

Description

@Quanhua-Guan

When more and more data cache in DiskCache, the startup can cost a lot of time, and before that we can not get data from disk cache.

Activity

  1. Quanhua-Guan commented on Oct 29, 2018

    @Quanhua-Guan
    Author

    Test on iPhone 8 Plus

    Item count Cached | time used to init PINDiskCache

    • 228 | 24~27ms
    • 1000 | 30~32ms
    • 10000 | 123~125ms
    • 100000 | 3651ms = 3.651s
  2. garrettmoon commented on Nov 14, 2018

    @garrettmoon
    Collaborator

    @Quanhua-Guan the disk cache initializes asynchronously in part to address these issues, but you're right, there may be a way to increase startup performance by storing metadata in a different place – sadly this would require a major rewrite of the disk caching layer.

  3. changed the title [-]For DiskCache, Why not cache meta datas? or use Sqlite to store meta datas?[/-] [+]Store metadata in alternative structure to increase initialization performance.[/+] on Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions