Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 OFIW performance :(
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Mar 10 2008 :  03:46:07 AM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 10 2008 :  5:18:18 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Mar 10 2008 :  5:23:24 PM  Show Profile  Reply with Quote
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
Go to Top of Page

Erik Olofsson
Tomato Guru

111 Posts

Posted - Mar 14 2008 :  2:22:18 PM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Mar 15 2008 :  10:19:03 AM  Show Profile  Reply with Quote
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
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 16 2011 :  1:55:37 PM  Show Profile  Reply with Quote
Open Files in Solution performance issue is case=19139, and is fixed in build 1862
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000