Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Massive speed difference between identical asp pages

Reply
Thread Tools

Massive speed difference between identical asp pages

 
 
MikeT
Guest
Posts: n/a
 
      11-18-2004
On Thu, 18 Nov 2004 08:42:29 -0800, "Mark Schupp" <>
wrote:

>See Aaron's response. If that doesn't help:
>
>Is the slow page slow when called a second time with the same parameters?
>Does it make a difference which page is called first?
>
>restart web-server (re-boot if possible)
>1. call slow page
>2. call fast page
>restart web-server again
>3. call fast page
>4. call slow page


OK Tried Aaron's idea, no joy.

But whilst I was logged into the webserver I checked the page
permissions again - the "slow" page was using a domain IUSR account we
set up ages ago when the libraries were on a different server to the
current one. The "fast" page was using the default local IUSR account.
The library itself couldn't care less as it has Everyone: read
permissions.

So - the speed difference is caused by the different authentication
methods. Each and every reference to oFile.Name was costing me lots of
time when using a domain account. Ouch. Teach me to use such similar
account names.

Thanks for all the help folks. There's nobody here to talk these sort
of problems through with, and sometimes that's the only way to solve
them.

Mike
 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      11-18-2004
Aaron,

this sounds like a keeper. you do have a category on aspfaq for "weird and
mystifying" stuff don't you?

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"MikeT" <> wrote in message
news:...
> On Thu, 18 Nov 2004 08:42:29 -0800, "Mark Schupp" <>
> wrote:
>
> >See Aaron's response. If that doesn't help:
> >
> >Is the slow page slow when called a second time with the same parameters?
> >Does it make a difference which page is called first?
> >
> >restart web-server (re-boot if possible)
> >1. call slow page
> >2. call fast page
> >restart web-server again
> >3. call fast page
> >4. call slow page

>
> OK Tried Aaron's idea, no joy.
>
> But whilst I was logged into the webserver I checked the page
> permissions again - the "slow" page was using a domain IUSR account we
> set up ages ago when the libraries were on a different server to the
> current one. The "fast" page was using the default local IUSR account.
> The library itself couldn't care less as it has Everyone: read
> permissions.
>
> So - the speed difference is caused by the different authentication
> methods. Each and every reference to oFile.Name was costing me lots of
> time when using a domain account. Ouch. Teach me to use such similar
> account names.
>
> Thanks for all the help folks. There's nobody here to talk these sort
> of problems through with, and sometimes that's the only way to solve
> them.
>
> Mike



 
Reply With Quote
 
 
 
 
MikeT
Guest
Posts: n/a
 
      11-18-2004
On Thu, 18 Nov 2004 09:15:54 -0800, "Mark Schupp" <>
wrote:

>Aaron,
>
>this sounds like a keeper. you do have a category on aspfaq for "weird and
>mystifying" stuff don't you?


When I have more time tomorrow, I'll see if I can narrow down the
behaviour to see exactly what the difference is, but the two major
gotchas are:

1) if you set things like the anonymous account used for
authentication on a page and then delete that page, a new page with
the name will inherit the old settings.

2) the filesystemobject appears to authenticate with every access to
an object. Well, at least, that is the only explanation I can find for
the behaviour I'm seeing. I'm going to be much more careful about
making lots of fso calls inside loops from now on - I've got a bunch
of other pages that I just thought were inherently slow that I'm going
to go back through now. The most useful page searches through around a
terabyte of Photoshop files so if I can speed that up, I'll be a very
happy man.

Mike
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have two almost identical pages in IE, one works and the other doesn't Luminari HTML 23 02-11-2007 12:49 AM
I have two almost identical pages in IE, one works and the other doesn't Luminari Javascript 0 02-08-2007 09:52 PM
Displaying two pages that are identical apart from the stylesheetbeing used Mr Flibble ASP .Net 1 06-21-2006 04:06 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
speed speed speed a.metselaar Computer Support 14 12-30-2003 03:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57