![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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??? > 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 Specs![]() |
| | #3 (permalink) |
| | 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 |
My System Specs![]() |
| | #4 (permalink) |
| | 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. > 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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. > 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 Specs![]() |
| | #7 (permalink) |
| | 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. >> > 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 Specs![]() |
![]() |
| 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 | |||