Speed of web site first load after build

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/24/2011 1:17:07 PM
Gravatar
Total Posts 76

Speed of web site first load after build

I would like to thank Joe Audette for his help in the past and in the future.  This question is to all of the developers.  I am running win XP SP3, Intel Core 2 Duo CPU 2.66GHz, 1.98 GB of RAM.  I have IIS running with (right now) Visual Studio 2010 Express.  The build time is fast, but when I go to run it after the build, it takes up words of a minute to run.  I know ASP.NET complies after a build, I didn't think it would take as long as it does.  Does any one have any suggestions on something I can do to make that first run faster?  I am the only one accessing the web site as its still under "development".

Thanks. 

Oh yeah, I am running version 2.3.6.2 MSSQL.  ASP.NET info: v4.0.30319 Running in Full Trust.

3/24/2011 1:31:23 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Speed of web site first load after build

I have a very similar setup on my development workstation, although I'm using Windows 7 with 4 GB of RAM. It typically seems to take about 30-45 seconds to launch after a new build, depending on what else I have running, and if I'm using debug mode. It definitely takes longer to start up when running in debug versus release mode, so unless you need to trace a crash or use breakpoints, you might try release mode more of the time. More RAM might help, but I can't promise it would make a difference. Unfortunately, Visual Studio and IIS are very resource intensive, so I guess that's a cost of doing business, as it were. smiley

If you're using IIS and don't need to debug, you can also navigate straight to http://localhost in your browser, rather than launching from inside VS. That's definitely faster for me.

Jamie

3/24/2011 2:31:37 PM
Gravatar
Total Posts 76

Re: Speed of web site first load after build

Thanks for the feedback.  Yep, right now I am using the localhost to access the updated web folder.  I use the localhost or my computer name to show off what I have done to my co-workers every so often to get feedback.  My next goal is to upgrade to a non express visual studio 2010, and hopefully windows 7.  

3/25/2011 5:44:22 AM
Gravatar
Total Posts 18439

Re: Speed of web site first load after build

Hi Jonathan,

Visual Studio is a bit of a resource hog and really needs a good machine especially when using a large solution with lots of projects. On a slow machine it can really be frustrating. If you're planning to upgrade that same machine to Win 7 and VS Pro I suspect it will still be frustrating and possibly more so since Win 7 is designed for newer machines and needs more resources. When I upgraded my old laptop it didn't make things better. Its a circa 2004 Dell Precision M-70 with 4GB of ram (not all of it useable under 32 bit) and it is so slow running VS 2010 that it is really not useable for real development. Your processor is probably a good deal better but anything less than 4GB of RAM seems too low for VS development and more is better.

btw, you can probably get VS 2010 Pro free via the Web Site Spark program.

Best,

Joe

ps: Thanks for the beer yesterday, much appreciated!

5/18/2011 1:55:45 PM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Speed of web site first load after build

Hi Guys

My PC was so slow it took 60 seconds just to open Visual Studio 2010

The problem does have a solution but it's pricey.
I built it myself from ordered parts for about $2.4K
Windows 7 Ultimate 64 bit
Intel Quad Core i7 950 @ 3.07 GHz
Gigabyte X58A-UD3R motherboard with (SATA 3, USB 3)
Thermaltake 2 fan CPU Cooler
12 GB Triple Channel RAM
2 of 1TB WD Black Hard Disks
*** OCZ Vertex3 120GB Solid State Drive SATA 3 (6Gbps) for OS and Development only ($310.00)
Corsair HX650 Power Supply
Gigabyte GTX460 1GB Video Card (nice for Games)
Oversized CoolMaster HAF Case
Microsoft Sidewinder X6 Keyboard with red backlit keyboard so you can work/play in the dark.
Pioneer Blu-Ray Burner and Regular DVD Burner

The Windows Experience Index is 7.5 out of possible 7.9
It's all fast, but the key speed component is:
the OCZ Vertex3 120GB Solid State Drive SATA 3 (6Gbps)

Here's the results in seconds
1s - Start VS 2010
8s - Build mojoPortal full solution
5s - VS run site in Browser no Debug
8s - VS run site in Browser with Debug

I could easily overclock the CPU to 4.0 GHz but will not because I really don't think it will buy me anything and I need it stable for work.
One last thing.  Not include in the price mentioned above is 2 X 24" Samsung Monitors
I figure I save almost 1 hour a day using this setup which can now be re-assigned to drinking beer.

Rick

5/18/2011 4:23:28 PM
Gravatar
Total Posts 18439

Re: Speed of web site first load after build

Nice new custom machine and nice performance results Rick!

I've been lusting after a fast SSD myself, but I think I'll need a new machine to get those 6GBps speeds since my current machine doesn't support SATA 3.

Maybe later this year I can justify it ;-D

Best,

Joe

6/2/2011 6:33:58 AM
Gravatar
Total Posts 34

Re: Speed of web site first load after build

I'd just like to confirm that a decent SSD does make a huge difference.

I have an ok machine Quad-Core(Not the new i series) 4Gb RAM etc, but nothing amazing by todays standards.

I bought 2x OCZ Vortex 2 a little while ago and put one as the system drive and then another to install my applications on, with normal hard drives for back up and mass storage. The fact that the OS and Applications can run on different SATA ports helps a bit and also moving the SWAP file to the second drive so that can be read on one channel while the OS loads off the other helps a bit more too.

No other hardware had been changed when I got these and it felt like I had a new computer. Windows boot times are fast and logon times are almost instant.

VS2010 Professional now runs at a pretty decent speed, even with full Mojo source code, then I have to come to work and use my Dual-Core PC with standard hard drive again and feel like crying :-)

Its a great investment and especially good for laptop users as the smaller form factor mechanical drives are even slower!!! So now have got one for my Ubuntu Laptop and boot times are... erm.. what boot time?

Matt :-)

7/21/2011 3:00:09 AM
Gravatar
Total Posts 5

Re: Speed of web site first load after build

For a highly connected website like this, it is often useful to disable batch compile during development.

Change the web.config <compilation batch="false"> and it will only compile the aspx files you are viewing, not ALL in the folder.

You must sign in to post in the forums. This thread is closed to new posts.