Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] uuid generation (was Re: Scope of namespaces)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] uuid generation (was Re: Scope of namespaces)
  • Date: Tue, 7 Feb 2006 10:07:54 +0000

On 2/7/06, Tatu Saloranta <cowtowncoder AT yahoo.com> wrote:

>
> But I wouldn't think that jdk1.5 generation method
> should be very inefficient? It of course depends on
> random number generator being used, but still... at
> least Jug was able to churn uuids at about 100k/second
> (using SecureRandom in case of random-based uuid)
> rate.
>
> So how slow is JDK1.5's method? Maybe I'll go and test
> it out now, having some excuse to check it out.

Look at the source: Its serialized. if you have one thread creating
many uuids, you dont take a hit, but if you have many threads, then
you go at the rate of the slowest.




Archive powered by MHonArc 2.6.24.

Top of Page