-
-
Notifications
You must be signed in to change notification settings - Fork 446
Opening large projects is terribly slow #84
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
Comments
Thanks for logging the issue.
Can you please share a link? I want to check the performance.
Well, we open all the files by design. Later, we might want to make this configurable, but it's not yet planned. I am turning your bug report into an enhancement. For sure, opening a large project must not slow down the app causing a bad UX. |
The project I was trying to open is Marlin. The Arduino project is inside the "Marlin" folder of the repository. It makes sense to consider it an enhancement, I was undecided myself. However the slowness makes very difficult working with large projects. I would be very glad to help, will this project be opened sooner or later? |
I agree. It is unusable. Also, opening 1632 files besides the main sketch file makes no sense. Thank you again for the heads-up on the performance issue. |
@marc0777 |
@kittaakos |
I am using the I am adding the CLI label. |
For the time being, we could add a preference for whether to open all sketch files or only those that are at the root of the sketch. Opening all files could be the default, no behavior change, but users can still adjust it. Thoughts? We could tackle the UX issue without a CLI change. |
I think that would be a good solution. The preference could let users choose between the default of opening all files, an option to open only the files in the root, and the last one to open only the For sure the last one would be the one I'd use the most: I think starting from a clean workspace when working with big projects is important, and it would save the time to close all the opened files. |
@marc0777
this might cause the issue you're having right now if such preference is set by the user and a large project like Marlin is opened.
my point exactly :D Thank you for the feedback |
I think it would make sense to allow the options you give here:
However, would it not make sense to just have the IDE remember which files you had open last time the project was opened? Many IDE's use this method to allow users to pick up where they left off. |
@Dave528 I was having a somewhat related chat with @facchinm the other day. keep your eyes peeled, we have a couple of things in progress which should help when added to the release. |
Closing as fixed by d1505f2 |
When opening a large project (such as Marlin) the IDE tries to load every single file inside the project folder, but after a certain number the opening of each file takes a couple of seconds.
Steps to reproduce the behavior:
In my opinion when opening a project just the .ino file should be opened, or at most the files in the root of the projects, and not in subfolders. This way only essential files are immediately opened, and other files can be seen in the Explorer.
I doubt anyone would be using Classic mode for large projects, the drop down menu gets annoying to use with a lot of files.
Device:
The text was updated successfully, but these errors were encountered: