I personally use PrintWriter but either should work just fine.

-stephan



                                                                                       
                           
                    "Venkatesh Kumar                                                   
                           
                    A G"                     To:     "ECS" <[EMAIL PROTECTED]> 
                           
                    <[EMAIL PROTECTED]        cc:     <[EMAIL PROTECTED]>             
                           
                    et>                      Subject:     Re: Memory poblems           
                           
                    Sent by:                                                           
                           
                    <[EMAIL PROTECTED]                                                  
                           
                    -dogs.com>                                                         
                           
                                                                                       
                           
                                                                                       
                           
                    10/04/2000 02:56                                                   
                           
                    PM                                                                 
                           
                    Please respond to                                                  
                           
                    "ECS"                                                              
                           
                                                                                       
                           
                                                                                       
                           




Hi Stephan,
     Do you use PrintWriter or Outputstream to dump the data ?
    Please help.

Thanks
Venkatesh

-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: ECS <[EMAIL PROTECTED]>
Date: Monday, September 25, 2000 1:48 AM
Subject: Re: Memory poblems


>
>
>simplest solution don't use out.println(ecsobject.toString()); do this
instead.
>
>ecsobject.output(out);
>
>toString() is a VERY expensive operation and will increases you memory
usage by
>at least 2x.  I'm generating large ecs data structures ( 8 meg files ) and
using
>output(out); and it works just fine.
>
>-stephan
>
>
>
>
>--
>------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives and Other:  <http://java.apache.org/main/mail.html>
>Problems?:           [EMAIL PROTECTED]
>
>



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






--
------------------------------------------------------------
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