-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

We have noticed that the implementation of PrintWriter is very expensive
on Linux because of the underlying Unicode translations.  I think that
the Unicode byte translations are probably just much better implemented
on Solaris.  Use profiling to see where the code is spending its time.
It seems that much of our time spent was in JServ's
PrintWriter.write().  PrintWriter by nature is a text output writer so
it translates from Unicode to a byte output stream.   That translation
is the expensive part.

-MA

Ludovic Bailly wrote:

> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
>     Hello,
>
> I've a servlet which send back a 26k page.
> I use out.write(MyPage) where MyPage is the string reprensenting the
> page and
> out the result of Response.getWriter();
> The time spent to send it is about 0.3 s on my Linux box
> P2 400 128Mo apache 1.3.9 jserv 1.0 jdk1.2 preV2
> and about 0.06 s on a SUN E250 512Mo apache 1.3.9 jserv 1.0 jdk1.2.2
> In fact processing web pages with freemarker take the same time with
> this 2
> configurations but sending back web page is very expensive on Linux
>
>     Does someone have an idea ?
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to