Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] uuid generation (OT)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] uuid generation (OT)
  • Date: Tue, 7 Feb 2006 09:42:18 -0800 (PST)



--- Steve Loughran <steve.loughran AT gmail.com> wrote:

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

Hmmh. I'm not sure I see the problem... methods are
not synchronized as far as I can see; and the
implementation seems quite straight-forward? But even
if it was fully synchronized, we'd be talking about
something like 10 - 100 usec blocking (plus related
cache flushes maybe)... possibly a problem for some
systems, but only for selected few.

Anyway, sorry for the side track, I'm just curious to
know issues and concerns there are WRT using uuids.

-+ Tatu +-


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




Archive powered by MHonArc 2.6.24.

Top of Page