I'm running into a performance degradation taking place server-side and
depends on the target client's browser. Does anyone know why this might be
happening?

If my client is IE, the code gets executed in less than 1 second. If my
client is Netscape, it takes 4 seconds. Why the target browser is having any
effect on server side code is beyond me. If its any help, the file being
read in contains JavaScript which is being imbedded in the html file being
served up.

For this project, I'm using ND3 and the development app. server and studio
are on NT.

The app. server is doing a file read during the onBeforeHtmlOutputEvent of a
static text area. Here's the code snippet.

*** BEGIN CODE ***
CSpLog.send (this, CSpLog.HIGH_LEVEL, "file " + f.toString() + " exists");
CSpLog.send (this, CSpLog.HIGH_LEVEL, "file being read : started at " + new
java.util.Date() );

FileReader in = new FileReader(f);
int ch;
while((ch = in.read()) > -1){
    buf.append((char)ch);
}

CSpLog.send (this, CSpLog.HIGH_LEVEL, "file read : ended at " + new
java.util.Date() );
*** END CODE ***

The log shows that "file read : end at ..." is consistently around 4 seconds
for Netscape clients whereas its 1 second for IE.

Paul Gentile
Consultant - Cardinal Group International. Inc.
[EMAIL PROTECTED] (508) 620-9119 x170

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to