|
Prev: CTabCtrl toggle icons
Next: My Edit boxes are flickering when CView object is redrawing itself.
From: dwaach on 12 May 2008 02:08 On May 9, 7:50 pm, Joseph M. Newcomer <newco...(a)flounder.com> wrote: > 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.xsth...(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: newco...(a)flounder.com > Web:http://www.flounder.com > MVP Tips:http://www.flounder.com/mvp_tips.htm- Hide quoted text - > > - Show quoted text - Hi Joseph, Too many things to check as per your thread. I checked everything. All seems ok and I am using Cisco VPN to connect ot office network. My code takes 5 mins from office and around 1 hr from off-office connection using VPN. My connection speed is good 512Kbps. I am using precompiled headers and the environment variables point to the network shared drives and folders as:- \\server1\\headerFolder1 \\server1\\headerFolder1\headerFolder2 \\server2\\headerFolder1 \\server2\\headerFolder1\headerFolder2 Unable to map network shared drives and folders when on Cisco VPN. Any other clues or ideas ? Thanks, Abhishek
From: Tom Serface on 12 May 2008 02:22 I work almost exclusively on VPN and I just check out the project to my local drive to work on and work my best to disable the integrated VSS stuff from the VS IDE (which keeps popping back on and I have to turn it off again). It's a pain, but it works. VPN is just slow and a lot of it has to do with the speed of your internet connection of course. I only have 1.5Mbit download and 256K upload so it's a lot slower than the local lan. Network shares work OK for me, but I have to log into the domain at the main office. If you need to use VPN with VSS I would suggest getting another client for it. I use Source Anywhere from DynamSoft. But that won't speed up your compile. I've found the easiest thing to do is just have my own local copy of the source and compile it on my local machine. I usually use "Get Latest Version" to get all the code I don't need to modify, and then check out code I need to modify using Source Anywhere. That paradigm has worked well for me for several years. "dwaach" <xbhishek.xsthxnx(a)gmail.com> wrote in message news:1ee586e7-5430-4357-aaaf-ab57b573d4f8(a)25g2000hsx.googlegroups.com... On May 9, 9:30 pm, "Tom Serface" <tom.nos...(a)camaswood.com> wrote: 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
From: Joseph M. Newcomer on 12 May 2008 03:23 As someone already observed, VPN can be miserably slow. VPN can be a MASSIVE handicap for performance, and it is likely that ALL of that time is going into VPN-based delays. joe On Sun, 11 May 2008 23:08:29 -0700 (PDT), dwaach <xbhishek.xsthxnx(a)gmail.com> wrote: >On May 9, 7:50�pm, Joseph M. Newcomer <newco...(a)flounder.com> wrote: >> 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.xsth...(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: newco...(a)flounder.com >> Web:http://www.flounder.com >> MVP Tips:http://www.flounder.com/mvp_tips.htm- Hide quoted text - >> >> - Show quoted text - > >Hi Joseph, > >Too many things to check as per your thread. I checked everything. All >seems ok and I am using Cisco VPN to connect ot office network. >My code takes 5 mins from office and around 1 hr from off-office >connection using VPN. My connection speed is good 512Kbps. >I am using precompiled headers and the environment variables point to >the network shared drives and folders as:- > >\\server1\\headerFolder1 >\\server1\\headerFolder1\headerFolder2 >\\server2\\headerFolder1 >\\server2\\headerFolder1\headerFolder2 > >Unable to map network shared drives and folders when on Cisco VPN. > >Any other clues or ideas ? > >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: Joseph M. Newcomer on 12 May 2008 03:24 I'm amazed by the fact that the single most important parameter of the problem, the use of VPN, never entered the original question! joe On Sun, 11 May 2008 23:22:26 -0700, "Tom Serface" <tom.nospam(a)camaswood.com> wrote: >I work almost exclusively on VPN and I just check out the project to my >local drive to work on and work my best to disable the integrated VSS stuff >from the VS IDE (which keeps popping back on and I have to turn it off >again). It's a pain, but it works. VPN is just slow and a lot of it has to >do with the speed of your internet connection of course. I only have >1.5Mbit download and 256K upload so it's a lot slower than the local lan. > >Network shares work OK for me, but I have to log into the domain at the main >office. > >If you need to use VPN with VSS I would suggest getting another client for >it. I use Source Anywhere from DynamSoft. But that won't speed up your >compile. I've found the easiest thing to do is just have my own local copy >of the source and compile it on my local machine. I usually use "Get Latest >Version" to get all the code I don't need to modify, and then check out code >I need to modify using Source Anywhere. That paradigm has worked well for >me for several years. > > >"dwaach" <xbhishek.xsthxnx(a)gmail.com> wrote in message >news:1ee586e7-5430-4357-aaaf-ab57b573d4f8(a)25g2000hsx.googlegroups.com... >On May 9, 9:30 pm, "Tom Serface" <tom.nos...(a)camaswood.com> wrote: > >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 Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: David Ching on 12 May 2008 10:48 "dwaach" <xbhishek.xsthxnx(a)gmail.com> wrote in message news:1504e95a-95e0-4795-a398-d6890ecf7236(a)24g2000hsh.googlegroups.com... > Too many things to check as per your thread. I checked everything. All >seems ok and I am using Cisco VPN to connect ot office network. >My code takes 5 mins from office and around 1 hr from off-office >connection using VPN. My connection speed is good 512Kbps. >I am using precompiled headers and the environment variables point to >the network shared drives and folders as:- > >\\server1\\headerFolder1 >\\server1\\headerFolder1\headerFolder2 >\\server2\\headerFolder1 >\\server2\\headerFolder1\headerFolder2 > >Unable to map network shared drives and folders when on Cisco VPN. Are these drives/folders (and any others not on your local system) in the Project Include/library settings, or Visual Studio settings/environment variables? Maybe during the build they are trying to be accessed and you have to wait for a network timeout to occur since they're not available. -- David
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: CTabCtrl toggle icons Next: My Edit boxes are flickering when CView object is redrawing itself. |