java.util.Date.toString() very slow -- why?

Adam Megacz gcj@lists.megacz.com
Sun Jun 2 12:53:00 GMT 2002


The following code takes 1:35 using 3.1-branch and 0:02 with
HotSpot. Any ideas why?
 - a
import java.util.*;
public class test {
 public static void main(String[] s) throws Exception {
 for(int i=0; i<200; i++) System.out.println(new Date());
 }
}
-- 
Sick of HTML user interfaces?
www.xwt.org


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /