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

关于编辑器例子33计算文件夹大小ProjectWindowItemOnGUI的建议 #12

Open
shadow-lr opened this issue Apr 22, 2021 · 0 comments

Comments

@shadow-lr
Copy link

image

Example_33_ProjectWindowItemOnGUI编辑器可能有可以改善的地方,当项目中的文件夹大小达到一定程度时(1g以上),此时如果导入或删除资源或者脚本编译时,编辑器的逻辑,会清掉之前所有计算的结果,然后重新计算所有文件夹的大小,会使得创建个新文件夹会等待个一两秒的时间,我觉得可以弄个缓存机制,保留之前的计算信息然后局部更新大小,猜测应该可以用文件夹的结构构造一个线段树然后局部更新?或者缓存,时间戳好像也可以

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