"[EMAIL PROTECTED]" wrote : | - I actually (as a programmer) would recommend to not use SimpleDateFormat unless your formatting is stored in a database field since its performance is pretty bad.
Hmmm, would say, that depends. Its probably not as fast as Integer.toString(), but IMHO its still pretty fast and quite comfortable (especially if you have to consider timezone conversion etc.). What I've seen is, that the way hibernate uses SimpleDateFormat is often inefficient and actually that results in bad performance. E.g. hibernate often creates a new SimpleDateFormat when it needs one. Better would be to clone a static instance (since pattern is the same) and adjust its timezone if neccessary. This would safe the relative expensive compilation of the underlying format pattern, which is done for each new instance of a simpledateformat ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945910#3945910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945910 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
