Post date: 2007-11-27 14:08Ok, found some helpful hints in the Help.
System.out.println("System.currentMillis(): " + System.currentTimeMillis() );
System.out.println("session.createDateTime(): " + session.createDateTime("Today").toJavaDate().getTime() );
These code lines will produce the same result - it usually differs 10 milliseconds.
The reason you would like to work with Java Dates is because it takes 16 bytes per entry where the DateTime of Domino takes 96 bytes per entry.
Creating 100 000 Date entries takes 141 ms and creating 100 000 DateTime entries takes 9114 ms. So for large operations it might be worthwile to consider.
But we are very close to sub optimizing now. 
|