> Okay.. I guess that kind of thing is that someone looking at > code will sometimes say "String concatenation Bad!", which I > think is really a bit of a myth in modern JVM's..
It is a myth. Both Sun and IBM's JDK/JVM do pre-compiler optimization for String concatentation (and a whole lot more, naturally). Under the hood, Sun's JVM converts the concatenated Strings to use a StringBuffer instead. So this statement: "I" + " concatenate" + " strings"; Is really converted to: new StringBuffer("I").append(" concatenate").append(" strings); During the precompile phase. I think Jikes does this too. When you're reach this level of granualarity, I'll reiterate something a college professor told me a while back that I always abide by: "No matter what you do, the compiler and the runtime environment are smarter than you. They optimize better than you. They manipulate data better than you. That is their job. Always code for human readability and understanding." Of course you have to code with sound principles and algorithms, just don't worry about that level of detail... > Sorry about winmail.dat, i need to get something better then outlook! Um...Pine? ;) I use spamcop.net's webmail. Its completely configurable using Horde's IMP webmail program and its unreal at how good it is at filtering spam. Plus you avoid an almost insane amount of viruses targeted for Outlook. Les > > > -----Original Message----- > > From: Christian Bauer [mailto:[EMAIL PROTECTED] > > Sent: Friday, October 31, 2003 10:21 AM > > To: Eric Pugh > > Cc: [EMAIL PROTECTED] > > Subject: Re: [Hibernate] Performance Difference in HQL? > > > > > > On 30 Oct (21:40), Eric Pugh wrote: > > > > > If I use the second method, then I don't have to worry when > > I move my class > > > around, versus the first method I have to keep the > > classpath up to date in > > > the queries..? > > > > It shouldn't make any difference. > > > > [-- Attachment #2: winmail.dat --] > > > > Please stop that. > > > > -- > > Christian Bauer > > [EMAIL PROTECTED] > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel