/ Home \ | \ Subjects / |
30/10/2006 02:18 Mi: |
There is delay (about 300-400 ms) in CGI. It concerns windows wersion only? Is any way to avoid this?
|
30/10/2006 03:45 Max: |
Server doesn`t have internsl delay before run script. What type of CGI do you use? And what version of Windows? I try and not seen a dalay. Of course difficult detect the delay that less then one second. It`s true, process creation take some time, file and all DLLs must be readen from disk, the system alloc memory, option the links, etc... but 300ms is too much for average script. If the script compiled as GUI application, Windows take some advansed action e.g. change currsor until the application show a windows but for not more then few seconds. Try to use console application. May be some startup code in application take a time. If the server window is opened then redraving may take a time but I think not more then 100 ms. Hide (minimize) server`s log window. For Perl you may try to use ISAPI perlis.dll instead Perl.exe to exclude process creation and startup... |
30/10/2006 07:23 Mi: |
I`m using PE exe console only, small and simple. I do test with assembler `hello world` program and with your webmail.exe too: !->30/10 01:47:27 [127.0.0.1:2120>80] (t1 26) GET /cgi-bin/webmail.exe HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/x-shockwave-flash, */* Accept-Language: pl Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) Host: localhost Connection: Keep-Alive !->30/10 01:47:27 [127.0.0.1:2120>80] (t1 27) >HTTP in:309 out:116 localhost Time:321 I tested with firefox and opera too. In win98se and XP-pro same problem. Machine is not new but rather fast, nforce2 asus mainboard, athlon 2600+, RAM CL2, 7200 RPM hdd, no resident antivirus monitor, firewall software etc. |
30/10/2006 07:32 Mi: |
I try ISAPI
|
30/10/2006 23:55 Mi: |
400 ms delay with php.exe. Fortunately PHP works as ISAPI (php5isapi.dll), practically no delay. |
31/10/2006 04:51 Max: |
Yes, in my Windows system the same, about 300-400ms for the script. I will think how to minimize this time. |
31/10/2006 06:32 Mi: |
Bettering the windows system is really hard job. I`m doing it for years with moderate results :) Good Luck.
|
06/11/2006 02:52 Max: |
You may try version 3.05.61 I hope, in some cases execution will too fast. |
19/11/2006 14:09 Mi: |
Now it is fast, very fast.
|