Hi Cezar,

    Yep, SimpleDateFormat creates over 300 objects when asked for a default
timezone.

                                                Joe Sam


>  Try to instantiate a DateFormat
>  and re-use it to print more than one Date.
>
>  (DateFormat.format(Date) call)
>  Otherwise Date.toString(), each time it is called,
>  creates locally  a TimeZone and DateFormat instance
>  then tell it to format(this).  This is expensive.
>------------------
>
>Bye,
>Cezar.
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to