Java TimeUUID vs UUID.randomUUID()
This is a great video of SriSatish Ambati discussing a number of useful Java garbage collection and concurrency issues
Among the many things I learned: at 38:00, use TimeUUID instead of UUID.randomUUID(). The latter is affected by SHA overhead and filesystem calls to /dev/urandom, while the former is not.
Here’s a reference to where you can find an implementation for TimeUUID:
http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java
Nice.
Advertisement
His entire presentation was good (as was the Irish Coffee at the Buena Vista). Come to the SF Java Users group meetings!
Mike Duigou
July 5, 2011 at 7:18 pm