DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35052>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35052 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-11 22:01 ------- It sounds to me that getting rid of intern doesn't hurt performance considerably. Consider these three cases: 1. You're doing: Logger.getLogger("logger1"); ... Logger.getLogger("logger1"); Using a string constant here, "logger1" was already interned and "logger1".equals("logger1") is fast. No need to explicitly do an intern() 2. You're evaluating the string, you're doing: int i = 1; Logger.getLogger("logger" + i); ... Logger.getLogger("logger" + i); In which case, the cost of intern() is MUCH more expensive than intern anyway, so why bother? 3. You're storing the evaluated string and a combination of above. Again, intern() is more expensive than equals() so why bother. I don't understand the need for intern() at all. Sounds like a premature optimization bug. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]