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 · 0 comments
Open

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

tangkq opened this issue Oct 22, 2024 · 0 comments

Comments

@tangkq
Copy link

tangkq commented Oct 22, 2024

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

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

No branches or pull requests

1 participant