[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Optimisations: A couple of low hanging fruits going for
timfox
do-not-reply at jboss.com
Wed May 14 11:55:21 EDT 2008
"jmesnil" wrote :
| It seems the bottleneck is the generation of the UUID.
|
| When using UUID.randomUUID(), the implementation uses a SecureRandom.
| If I use Random instead and creates the UUID with new UUID(rand.nextLong(), nextLong(), the perf increases significantely.
|
I don't think we should be using random UUIDs at all, since they're... well random (so can clash).
Instead I think we should use a variant 2 UUID.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150802#4150802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150802
More information about the jboss-dev-forums
mailing list