Mike Trinder wrote, on Thursday, December 07, 2000 12:39
:       I have an .asp page that returns a jpeg image. It works
:       fine, and performs as expected, taking around 1.5 seconds
:       <snip>
:       Until now, there has only been a single such image on any
:       given page and I've not noticed the problem. However, a
:       page that lists 20 or so thumbnails (6-7k each) takes
:       forever to load the images - roughly 3-4 seconds each -
:       and they always load sequentially.
: 
:       It looks like there is an overhead to starting an .asp
:       page with a mixture of VB and Perl, and that something
:       is only allowing one such page to be interpreted at a
:       time... replacing the single page with, say, ten pages
:       and calling them round-robin style does not cause the
:       images to load any differently.

There's a tremendous performance hit involved in loading two languages
in a single asp page. The language in the "<%@language = .." tag is
the default; the other language (loaded through a "<script runat='server'
language='..'> tag?) seems to take extra long to load, and seems to
load & unload for each <script> tag. Also, there's no guarantee of
order of evaluation of the two languages.

If at all possible, scrap any VBscript on the pages where you need
Perl (and vice-versa). I use perlscript with IIS 4.0 all the time;
yeah, it's slower than VB (so is JavaScript, for that matter), but
I try to never mix languages on a page. You can, however, have pages
with different <%@ languages in the same application with no additional
performance penalty.

Joe

==============================================================
          Joseph P. Discenza, Sr. Programmer/Analyst
               mailto:[EMAIL PROTECTED]
 
          Carleton Inc.   http://www.carletoninc.com
          219.243.6040 ext. 300    fax: 219.243.6060
 
Providing Financial Solutions and Compliance for over 30 Years

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to