Author |
Topic |
|
znakeeye
Tomato Guru
379 Posts |
Posted - Mar 10 2008 : 03:46:07 AM
|
I really don't understand why OFIW has to be so slow. If you have like 10 projects with ~50 files each, this indispensible dialog takes several seconds to open.
I guess you re-read the whole file tree when initiating the dialog. If that is the case, see the solution below. Otherwise, I guess the population of the list is the bottleneck. In that case, why not keep the whole dialog in memory?
Possible optimization 1) Read all files upon startup (or whenever suitable). Keep the list! 2) Whenever a file is added/removed from the project, update the list! 3) Use this list when the OFIW dialog is shown. Boom-shack-a-lak! |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Mar 10 2008 : 09:50:38 AM
|
Which IDE and version of VA are you using? How many files does your solution actually contain?
I have just pressed Alt-Shift-O in my VS2005 test project, and the dialog appeared "instantly". There was no noticeable delay at all. The dialog lists 648 files and the solution contains 6 projects. |
zen is the art of being at one with the two'ness |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Mar 10 2008 : 5:18:18 PM
|
If you check "Show only files in the current solution", this feature should be lighting fast. There is a know issue about this dialog: if you keep this option unchecked, the dialog gets slower and slower with every open. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Mar 10 2008 : 5:23:24 PM
|
This check box is unchecked on my test system. From memory there is only a speed issue if you have a Lot of open files. If you have 100+ files open then I would expect this dialog to be slower. |
zen is the art of being at one with the two'ness |
|
|
Erik Olofsson
Tomato Guru
111 Posts |
Posted - Mar 14 2008 : 2:22:18 PM
|
I had the same issue back in 2006, and it would be great if you could actually fix it. I even posted the probable cause in your code. It would be great if Whole Tomato could take a look at it as it's really useful to have the the option of seeing files not in the project.
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4918 |
Cutting Edge Project Management http://www.hansoft.se |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Mar 15 2008 : 10:19:03 AM
|
How many windows do you normally have open in the IDE?
I have used OFIW to open approximately 200 files in VS2005, with VA 1626 and the OFIW dialog is now opening in approximately 1 second.
So far I cannot see any way to make the IDE tell me how many windows are open, so I do not have an exact count. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Dec 16 2011 : 1:55:37 PM
|
Open Files in Solution performance issue is case=19139, and is fixed in build 1862 |
|
|
|
Topic |
|