Index file dependencies to make moving files faster #5912
alex-pahdo
started this conversation in
Editor
Replies: 1 comment
-
A much simpler solution that I just thought of is to add a button to turn that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, the FileSystemDock::_find_remaps function searches through all project files for references to update whenever a file is moved or renamed. For large projects, this can mean waiting 5-10 seconds every time. I propose an index file that maps each resource path to a list of all files that depend on it. That way, the _find_remaps function only needs to do a lookup in that index and process a handful of files when a resource is renamed.
Requirements
I know where to implement most of this, but I put it in Discussions because I am not sure I can ensure coverage of every place in code where the index would need to be updated.
https://github.com/godotengine/godot/blob/a7937fe54cd2c1f407a529e46e2708aea5ce7243/editor/filesystem_dock.cpp#L1190
Beta Was this translation helpful? Give feedback.
All reactions