|
Prev: CTabCtrl toggle icons
Next: My Edit boxes are flickering when CView object is redrawing itself.
From: dwaach on 9 May 2008 03:51 Hi, I have a vc++ 2002.NET MFC console exe project and it accesses a lot of 3rd party headers and libraries available on a network machine \ \dataread. Now, I do connect to that machine by Start->Run->\\dataread and entering user/pwd. Further I have declared several environment variables which are used in the Visual Studio project. The project build is extremely slow. I do not understand why ? It takes soe over 1 hour. Any help please appreciarted. Thanks, Abhishek
From: Nord Pierre on 9 May 2008 04:34 You're visual studio certainly create .obj files and all things needed in "Release" or "Debug" directory trought the network. Try to have the output dir on your local drive (even if all .src are somewhere else) Pierre "dwaach" <xbhishek.xsthxnx(a)gmail.com> a �crit dans le message de news: 5524042c-9c0a-4369-9421-5da33a83995a(a)z16g2000prn.googlegroups.com... > Hi, > > I have a vc++ 2002.NET MFC console exe project and it accesses a lot > of 3rd party headers and libraries available on a network machine \ > \dataread. Now, I do connect to that machine by Start->Run->\\dataread > and entering user/pwd. Further I have declared several environment > variables which are used in the Visual Studio project. > > The project build is extremely slow. I do not understand why ? It > takes soe over 1 hour. > > Any help please appreciarted. > > Thanks, > Abhishek
From: Joseph M. Newcomer on 9 May 2008 10:50 How large is the source? Anything less than 100,000 lines should compile in under a minute under normal circumstances. How sophisticated are the "third party" libraries. Complex template processing can result in slower compilation, but not an hour. Are you using precompiled headers? If you aren't, there is no reason to expect fast compilations. Given the third-party libraries are likely to be very stable, they should be #included in stdafx.h so they are part of the precompiled header. How fast is your network and file server? If you have "declared several environment variables", which ones, and what are the values? Long search paths for include directories, especially if they have to be searched individually over a slow network or to a slow server, will have severe impact on your compilation speed. Do the third-party libraries have #pragma once in the header files, or just include-guards? #pragma once will significantly improve performance. There is far too little information here to actually diagnose the problem, but any compilation taking more than a few minutes has serious problems; the key is to figure out why. I'd suggest doing a build with all the files on a local machine and see if there is any change in speed. Try using a tool like diskperf to measure actual time delays in getting to the files. I become annoyed if a build takes longer than 30 seconds. If yours is taking a hour, you have a significant problem, but there is no way to figure out what it is from the little information provided here. joe On Fri, 9 May 2008 00:51:02 -0700 (PDT), dwaach <xbhishek.xsthxnx(a)gmail.com> wrote: >Hi, > >I have a vc++ 2002.NET MFC console exe project and it accesses a lot >of 3rd party headers and libraries available on a network machine \ >\dataread. Now, I do connect to that machine by Start->Run->\\dataread >and entering user/pwd. Further I have declared several environment >variables which are used in the Visual Studio project. > >The project build is extremely slow. I do not understand why ? It >takes soe over 1 hour. > >Any help please appreciarted. > >Thanks, >Abhishek Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Tom Serface on 9 May 2008 12:30 In addition to what other's have mentioned, are you running on VPN? I've found that things can slow down quite a bit when running under VPN especially if VS feels the need to get new source or check out files from VSS. Also, even though I don't like mapped drives, if you map drives to your network shares things will run much faster. Tom "dwaach" <xbhishek.xsthxnx(a)gmail.com> wrote in message news:5524042c-9c0a-4369-9421-5da33a83995a(a)z16g2000prn.googlegroups.com... > Hi, > > I have a vc++ 2002.NET MFC console exe project and it accesses a lot > of 3rd party headers and libraries available on a network machine \ > \dataread. Now, I do connect to that machine by Start->Run->\\dataread > and entering user/pwd. Further I have declared several environment > variables which are used in the Visual Studio project. > > The project build is extremely slow. I do not understand why ? It > takes soe over 1 hour. > > Any help please appreciarted. > > Thanks, > Abhishek
From: dwaach on 12 May 2008 02:04 On May 9, 9:30 pm, "Tom Serface" <tom.nos...(a)camaswood.com> wrote: > In addition to what other's have mentioned, are you running on VPN? I've > found that things can slow down quite a bit when running under VPN > especially if VS feels the need to get new source or check out files from > VSS. > > Also, even though I don't like mapped drives, if you map drives to your > network shares things will run much faster. > > Tom > > "dwaach" <xbhishek.xsth...(a)gmail.com> wrote in message > > news:5524042c-9c0a-4369-9421-5da33a83995a(a)z16g2000prn.googlegroups.com... > > > > > Hi, > > > I have a vc++ 2002.NET MFC console exe project and it accesses a lot > > of 3rd party headers and libraries available on a network machine \ > > \dataread. Now, I do connect to that machine by Start->Run->\\dataread > > and entering user/pwd. Further I have declared several environment > > variables which are used in the Visual Studio project. > > > The project build is extremely slow. I do not understand why ? It > > takes soe over 1 hour. > > > Any help please appreciarted. > > > Thanks, > > Abhishek- Hide quoted text - > > - Show quoted text - Hi, Ya, I am using VPN as Cisco VPN to connect to the office network from other place. Just missed to mention, when I compile the project while at office the speed of compilation is avg around 5 mins. However, when I do the same compilation from some other place than office, I usually connect using Cisco VPN and then when I compile it takes around 1 hour. I tried getting all the files locally on my system (those being accessed using \\ path on network) and then too the compilation speed is not too resonable when from other place than office. Do we expect speed of acess reduction of '\\server' stuff when on VPN ? Network shares do not work in VPN from other place. I tried them but failed. Any ideas why ? Thanks Abhishek
|
Next
|
Last
Pages: 1 2 3 Prev: CTabCtrl toggle icons Next: My Edit boxes are flickering when CView object is redrawing itself. |