Skip to content

Performance: Improve how MB handles local cacheΒ #4305

Open
@pikurasa

Description

Description

Every time a user creates a new project, it -- a JSON string -- is stored into the browser's cache.

We've had performance issues upon loading Music Blocks (MB) for a while, and finally determined that loading takes longer the more projects a user has stored to their local browser cache.

In order to solve this problem, we need to look into how we handle local data, so that loading time can be improved.

Expected Behavior

We want MB to load as fast as possible. Preferably as fast as it does from a private tab.

How to Reproduce

One way you can test this is:

  • Create a bunch of projects (or load them, either from the Planet or from the Examples folder), and reload MB
  • Compare loading time against opening MB in a private tab (e.g. Incognito Mode); the loading time when in a private tab will be much quicker than from a tab where local cache is being read.

Console log Errors:

I'm not really sure what logs may be related to this issue. It would be helpful if someone with experience in performance could look into this.

Environment:

  • Operating System: All
  • Browser (if applicable): All
  • Version of Software/Project: All

Note: Faster computers, especially ones with decent GPUs, in my testing, are less noticeably effected by this issue because the overall loading time is faster in either case. If you test on a faster computer, you should also try on a slower machine as well. And, in any case, always make sure to compare against a session that has many projects loaded (see above).

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Thank you for contributing to our project! We appreciate your help in improving it.

πŸ“š See contributing instructions.

πŸ™‹πŸΎπŸ™‹πŸΌ Questions: Community Matrix Server.

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