radioAe6rt

Java TimeUUID vs UUID.randomUUID()

with one comment

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

Written by radioae6rt

June 29, 2011 at 5:24 pm

Posted in Uncategorized

One Response

Subscribe to comments with RSS.

  1. 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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.