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

Folder listing takes ages #5

Closed
P2T opened this issue Apr 19, 2021 · 3 comments
Closed

Folder listing takes ages #5

P2T opened this issue Apr 19, 2021 · 3 comments

Comments

@P2T
Copy link

P2T commented Apr 19, 2021

Issue : In the editor tree, when opening a folder having lots of files, the listing is way too long.

Solution : prevent file*time() functions from being fired on folders with more than 100 files.

Complementary solution : do not check parents for subfolders in this case.

@kalcaddle
Copy link
Owner

Optimized, update next version

Optimization method: the tree directory list can display 1000 items at most. When the detection time exceeds 1.5 seconds, the number of file folder contents will no longer be obtained

@P2T
Copy link
Author

P2T commented May 31, 2021

OK, it's faster, but now, it's completely broken.

Problem 1 : when opening a folder with 100+ folders, nearly all of them appears empty in the editor.
Problem 2 : impossible to expand/collapse them (they are empty).
Problem 3 : Right click refresh, tries to refresh the parent folder

Solution : make folders appear full (use has_children boolean) by default.

@kalcaddle
Copy link
Owner

kalcaddle commented May 31, 2021 via email

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

2 participants