The title pretty much sums it up, and I'm sure there's a perfectly valid explanation,
but it seems extremly odd that loading pages(after they're compiled) on my local computer seems to take forever, when the same code is blistering fast when "live".
I'm developing on Vista, IIS7, pretty ok hardware; while the server is a single machine, running Windows server 2003 and IIS6 on a Xeon <3 ghz and a gigabit line.
Of course, I understand that the web server is especially tailored for this kind of activity,
but it still seems strange that a machine serving up to 2-300 sessions at a time
(spread unevenly on ~5 .Net 2.0 applications) through a remote network(aka. the internet ;-)
is so much faster at presenting the pages, compared to running the code locally...
Just something that's been on my mind for a while...
UPDATE
Thanks a lot for the answers! Just thought I'd add a few points to the above:
- Have tried removing all obstacles surrounding my localhost; turned off the firewall and antivirus, stopped pouring milk into my computer case, killed any heavy processes etc.
- This is not contained to just one project or app; it's something I've noticed and wondered about since I started working as a developer ( ~1 year )
- Don't think inaccessible resources has any significance; when working locally I usually have all the project's assets(pictures, flash, etc.) locally
- Can't really see any difference concering cache on or off.
Chose a random page from the project I'm currently working on, reloaded it completly a couple of times; locally I got it in about 4 seconds, compared to ~2 sec from the server. This was using FF and Firebug; using Opera I kind of felt there was a smaller difference but that's just my gut...
So I guess that leaves (as you mentioned) harddrives and the database connection... Just seems weird....