[Opensim-dev] [libsl-dev] UUID format: dashed here to stay?
Sean Dague
sean at dague.net
Thu Jan 17 13:56:12 UTC 2008
On Thu, Jan 17, 2008 at 10:46:43AM +0000, Justin Clark-Casey wrote:
> dirk husemann wrote:
> > John Hurliman wrote:
> >
> >> It was actually a big performance boost by changing to the dashed
> >> format. Internally, LLUUID is just a wrapper around the .NET Guid
> >> object which has a ToString() method that produces a dashed UUID. The
> >> non-hyphenated version removed the dashes which required an additional
> >> memory allocation on top of searching through the string, and I
> >> decided to just drop it completely. If you want to implement the same
> >> functionality in your client code it is just mystring.Replace('-','');
> >> but I would recommend switching over to the hyphenated version that is
> >> here to stay.
> >>
> > wow...very good reason. perhaps OpenSim should follow suit,then...
> >
> > cheers,
> > dirk
> >
> >
> Sounds fine to me personally. It just needs somebody (or some people)
> to make all the necessary changes in OpenSim and decide how and to what
> extent to deal with migration from existing stored data.
>
> Just as an observation, this might not be an attractive task at the
> moment (possibly until the next 'crisis') since things do work right now
> and there are many other bugs/unimplemented features to attend to.
As far as with/without dashes, I think going with the libsl format is
best. There is some rationale for the binary format that Tleiades put
in for MySQL Assets (which leaked beyond that I think), as indexes on
strings is many orders of magnitude slower than indexes on binary data.
I'm not sure if we're really affected by this yet, but it is worth
noting.
I think the current approach will be to get to dashed format
universally. I'm hoping that conversions can be accomplished by
migrations, once I actually get around to writing them. :)
-Sean
--
__________________________________________________________________
Sean Dague Mid-Hudson Valley
sean at dague dot net Linux Users Group
http://dague.net http://mhvlug.org
There is no silver bullet. Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080117/c133cf80/attachment-0001.pgp>
More information about the Opensim-dev
mailing list