I tested exactly this a short while ago with some 'kindergarten test program' (simply timing loops) Yes - I can hear them in the background shouting at me what about VM optimization, which OS, what machine, what else is running, bla bla ... But I don't want to publish this in a scientific journal.
So, on a my machine using jdk 1.3.1 depending on the OS, the VM options, the string lengths, the moon phase ... the switch-version is about 3 to 5 times faster. Which makes sense if you look at the source for Sring.equals() Cheers, Torsten _________________________________________________________ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=7993 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
