Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Best way to configure a small script to run FAST!!!!

Reply
 
Old 06-14-2009   #1 (permalink)
Toni


 
 

Best way to configure a small script to run FAST!!!!

I've got a very small ASP.NET script running on ASP.NET 3.5. It is passed parameters
from a classical ASP (VBScript) page using XMLHTTP and a value is returned. So far, it
look like this:

<%@ Page Language="VB" %>
<%
response.ContentType="text/HTML"
dim strData
strData = Request.Form("invar")
Response.write (value calculated from "invar")
%>

While this seems small, I really need this to execute with as little overhead as
possible - right now, the first time I call any ASP.NET script on my server (even "Hello
World"), there is a 4 second long delay and I don't know why!

Can anyone tell me how I can get this script to execute with as little over overhead as
possible, and eliminate that 4 second delay???



My System SpecsSystem Spec
Old 06-14-2009   #2 (permalink)
Registered User


 
 

Re: Best way to configure a small script to run FAST!!!!

On Sun, 14 Jun 2009 19:38:41 -0400, "Toni" <Toni24@xxxxxx> wrote:
Quote:

>I've got a very small ASP.NET script running on ASP.NET 3.5. It is passed parameters
>from a classical ASP (VBScript) page using XMLHTTP and a value is returned. So far, it
>look like this:
>
><%@ Page Language="VB" %>
><%
>response.ContentType="text/HTML"
>dim strData
>strData = Request.Form("invar")
>Response.write (value calculated from "invar")
>%>
>
>While this seems small, I really need this to execute with as little overhead as
>possible - right now, the first time I call any ASP.NET script on my server (even "Hello
>World"), there is a 4 second long delay and I don't know why!
>
>Can anyone tell me how I can get this script to execute with as little over overhead as
>possible, and eliminate that 4 second delay???
>
The article
New Compilation Modes in ASP.NET 2.0
http://www.west-wind.com/WebLog/posts/2128.aspx
will provide some insight about what you're experiencing.

regards
A.G.
My System SpecsSystem Spec
Old 06-14-2009   #3 (permalink)
Toni


 
 

Re: Best way to configure a small script to run FAST!!!!


"Registered User" wrote:
Quote:

> The article
> New Compilation Modes in ASP.NET 2.0
> http://www
> will provide some insight about what you're experiencing.
>
> regards
No, it didn't.




My System SpecsSystem Spec
Old 06-14-2009   #4 (permalink)
Registered User


 
 

Re: Best way to configure a small script to run FAST!!!!

On Sun, 14 Jun 2009 22:52:02 -0400, "Toni" <Toni24@xxxxxx> wrote:
Quote:

>
>"Registered User" wrote:
Quote:

>> The article
>> New Compilation Modes in ASP.NET 2.0
>> http://www
>> will provide some insight about what you're experiencing.
>>
>> regards
>
>No, it didn't.
>
Isn't the problem a 'slow' response when the page is initially called?
http://www.west-wind.com/WebLog/posts/2128.aspx
describes the default behavior

"In place compilation is ASP.NET 2.0’s default which compiles each
page in place when it’s accessed for the first time. This applies both
to Inline code (ie. Code and HTML markup in a single document) or for
ASPX + .cs/.vb source files specified with the CodeFile= attribute.
ASP.NET compiles both the ASPX and CodeFile when the page is first
accessed."

as well as an alternative to this default. Pros and cons of both
techniques are outlined. The document seems to answer the question why
(the response time is affected by the page being compiled in-place)
and offers an alternative (site pre-compilation).

regards
A.G.
My System SpecsSystem Spec
Old 06-15-2009   #5 (permalink)
Toni


 
 

Re: Best way to configure a small script to run FAST!!!!

Your document doesn't give me a direct solution. It DISCUSSES the issue, but doesn't
tell me how to modify my file, which is what I originally asked.

BTW, I'm on a shared server - I can't register a COM component, and I'm not trying to
compile anything.




My System SpecsSystem Spec
Old 06-15-2009   #6 (permalink)
Registered User


 
 

Re: Best way to configure a small script to run FAST!!!!

On Mon, 15 Jun 2009 13:37:06 -0400, "Toni" <Toni24@xxxxxx> wrote:
Quote:

>Your document doesn't give me a direct solution. It DISCUSSES the issue, but doesn't
>tell me how to modify my file, which is what I originally asked.
>
>BTW, I'm on a shared server - I can't register a COM component, and I'm not trying to
>compile anything.
>
There is no modification to the file which will alter the default
behavior of in-place compilation. The alternative is to pre-compile
the site to alleviate the 'slow' first call issue. While it's not what
you wish to hear, these are your choices.

regards
A.G.
My System SpecsSystem Spec
Old 06-15-2009   #7 (permalink)
Toni


 
 

Re: Best way to configure a small script to run FAST!!!!

"Registered User" wrote...
Quote:

> On Mon, 15 Jun 2009 13:37:06 -0400, "Toni" wrote:
>
Quote:

>>Your document doesn't give me a direct solution. It DISCUSSES the issue, but doesn't
>>tell me how to modify my file, which is what I originally asked.
>>
>>BTW, I'm on a shared server - I can't register a COM component, and I'm not trying to
>>compile anything.
>>
> There is no modification to the file which will alter the default
> behavior of in-place compilation. The alternative is to pre-compile
> the site to alleviate the 'slow' first call issue. While it's not what
> you wish to hear, these are your choices.
>
> regards
> A.G.
That's exactly what I wanted to hear. thanks.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Can script configure itself to log all output? PowerShell
More on Logon Script: Where to configure it so it runs when I log in? VB Script
Small script for mailenabling users in an OU VB Script
Script runs too fast PowerShell
Need of powershell script(Sorry new to PS and need help fast) PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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