DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43940>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43940





------- Additional Comments From [EMAIL PROTECTED]  2007-11-24 05:03 -------

Further info: formatting 50000 random doubles

    formatDouble(source, 4, 8, target) [216ms]

seems to be slightly faster than 

    target.append(Double.toString(source)) [236ms]

while having the benefit of the decimals and precision arguments.

It is also almost twice as fast as

    DecimalFormat df = new DecimalFormat("0.########", new 
DecimalFormatSymbols(Locale.US));
    for (int i = 50000; --i >= 0; ) {
       ...
       target.append(df.format(source));
    }

which takes 421ms on my end.

Tests run on Apple JVM 1.4.2

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to