Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.4小游戏判断缓存存在接口耗时大 #385

Open
tangkq opened this issue Oct 22, 2024 · 1 comment
Open

2.2.4小游戏判断缓存存在接口耗时大 #385

tangkq opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tangkq
Copy link

tangkq commented Oct 22, 2024

bundle数量2000+
下载器遍历所有bundle需要同步访问文件系统导致卡顿较大
参考方案:
去除同步访问接口,在OnStart时使用wxFileSystem.Stat异步扫描缓存目录,并将已有缓存保存在HashSet中
同时下载缓存后也将结果保存到HashSet

@gmhevinci gmhevinci added the enhancement New feature or request label Dec 16, 2024
@gmhevinci
Copy link
Collaborator

有一个痛点需要确认一下。YOO底层去记录缓存文件,如果微信插件有清理机制,会导致AB文件加载失败。如何避免这个问题?还是微信插件的清理机制可以关闭或避免?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants