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
 Poor performance when including many files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Juxta
Senior Member

27 Posts

Posted - Apr 20 2009 :  8:50:09 PM  Show Profile  Reply with Quote
Needing to add the dojo environment to VS2008 so i can debug the js files.
Copy the dojo folder as a subfolder of my project.
Go to Topmenu Projects->Show All Files.
Right click dojo and select "Include in Project"
After over 4,000,000 writes to fileids.va i needed to kill the devenv process. It never got to include all of the files.
Even if i disable VA while including the files that same problem occurs.
A workaround is to individually select the dojo files and include them but this is laborious as there are hundreds of small source file to include.
See image
The 1.6 million at the time i did the screen shot. Went up to 4 mil.

Edited by - Juxta on Apr 20 2009 9:10:39 PM

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 21 2009 :  12:47:34 PM  Show Profile  Reply with Quote
We can make some changes here. case=26116
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Apr 21 2009 :  1:06:19 PM  Show Profile  Reply with Quote
As a short term fix, if you use:

IDE tools menu -> Add-in Manager -> list of available add-ins

to stop VA loading on startup, then restart the IDE you should be able to add these files to your solution without any problems, since there should be no VA at all.

You can then return VA to loading on startup and restart the IDE once more. Does this help?


I have not tested this here, since I don't know anything about Dojo. A quick search got me to:

http://www.dojotoolkit.org/downloads

but which of these items should I download to try and reproduce the problem?

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 21 2009 :  1:15:51 PM  Show Profile  Reply with Quote
Good idea - but don't use the addin manager:
http://docs.wholetomato.com?W306
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Apr 21 2009 :  9:21:49 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

As a short term fix, if you use:

IDE tools menu -> Add-in Manager -> list of available add-ins

to stop VA loading on startup, then restart the IDE you should be able to add these files to your solution without any problems, since there should be no VA at all.

You can then return VA to loading on startup and restart the IDE once more. Does this help?


I have not tested this here, since I don't know anything about Dojo. A quick search got me to:

http://www.dojotoolkit.org/downloads

but which of these items should I download to try and reproduce the problem?



http://download.dojotoolkit.org/release-1.2.3/dojo-release-1.2.3-src.tar.gz
This is the one we use. We build one release from this. But if you just make it a sub folder of a project and try to include the whole think. This should repro.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Apr 22 2009 :  10:46:29 AM  Show Profile  Reply with Quote
I have just tried testing this here, it took about 30 seconds in a virtual machine. Performance on a fast physical machine should be even better / faster.

Using VA 1722 and VS2008 and a simple C++ console project I extracted this dojo tree into the project. It produced a tree holding 2,978 files and 593 folders.

I went into Solution Explorer and turned on show all files, a folder called "dojo-release-1.2.3-src" appeared in the tree.
I right clicked on this folder and selected "Include In Project".

VA's OFIW dialog is now listing 671 files in total, most of which are HTML files from Dojo.

What am I doing differently?

zen is the art of being at one with the two'ness
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Apr 22 2009 :  10:22:00 PM  Show Profile  Reply with Quote
http://www.mediafire.com/file/1wdmzcyjmq5/WebApplicationDojo.rar
Open solution
Go to Topmenu Projects->Show All Files.
Right click dojo and select "Include in Project"

I have x64 vista in a duo 2.2 ghz dell


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Apr 23 2009 :  5:03:18 PM  Show Profile  Reply with Quote
I have the test project, many thanks for that.

Can you give me some sense of how long this takes on your system? Or at least how long you let it run before killing the IDE?

I have tried this here, timing it each time. The timings are only approximate, but they give a sense of what I am seeing.

winXP machine with VA 1722 installed and active - adding these files took 5 minutes.
winXP machine with VA 1722 stopped from loading via VS2008 add-in manager - adding these files took about 4.5 minutes.

The same machine was used for both of these tests, so some caching might have happened to speed up the second run.

A different winXP machine where VA has never been installed - adding these files took 5 minutes.

5 minutes with the CPU stuck at 100% is a long time, but I am getting basically the same results with and without VA. So for me VA is not having a significant effect.

zen is the art of being at one with the two'ness
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Apr 24 2009 :  01:30:46 AM  Show Profile  Reply with Quote
Thats OK, i tested with that small project, and im getting comparative times. It was with my large solution with 50 or so project that was killing my system. I think now that devenv has bigger internal lists to maintain when a large solution is adding many files, so its slow, I think VA is doing a heck of a lot of file accesses and i thought that was the problem but maybe not.
I will leave it at that. Thanks for you help.

Off the topic. What's "One with the two'ness" all about?

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Apr 24 2009 :  1:24:13 PM  Show Profile  Reply with Quote
Some changes have been made internally to VA, to try and cut down on the file access required:

case=26116

So hopefully this will help a bit. Obviously it won't help with the IDE its self though.

My signature, one should always aim to be at one with things, most especially chocolate Of course, in the process of becoming at one with chocolate one realises that the chocolate is separate to me, hence two'ness

That or working in support is driving me crazy

zen is the art of being at one with the two'ness
Go to Top of Page

Juxta
Senior Member

27 Posts

Posted - Apr 26 2009 :  9:18:57 PM  Show Profile  Reply with Quote
Support must be driving you crazy
Thanks for your help
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 12 2009 :  9:13:06 PM  Show Profile  Reply with Quote
case=26116 is implemented in build 1727
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