This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]