[Opensim-dev] [libsl-dev] UUID format: dashed here to stay?

John Hurliman jhurliman at jhurliman.org
Thu Jan 17 07:57:10 UTC 2008


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.

John

On Jan 16, 2008 9:04 AM, dirk husemann <hud at zurich.ibm.com> wrote:

>  Fox Diller wrote:
>
>
>   Oh, I'm sorry. Though, wouldn't this be a perfect place for a ToString()
> function overload, something like
>
>  LLUUID.ToString(bool dashed) ?
>
> i guess the question is just: is this going to be the format for the
> future and does it justify updating existing DBs or is this going to change
> again...
>
>     cheers,
>     dirk
>
>
>
>  Thoughts?
>
>  .fox
>
>      On 16-Jan-08, at 3:23 AM, dirk husemann wrote:
>
>  Fox Diller wrote:
>
> I would've thought that keeping them without dashes inside of libSL would
> be more efficient? I mean, the dashes are just a visual cue, aren't they?
> Something only to display formatted on the gui/console side of your
> application?
>
> sorry, i should have been more specific: the ToString() format changed
> from non-dashed to dashed.
>
>
> .fox
>
> On Jan 16, 2008 2:21 AM, dirk husemann <hud at zurich.ibm.com> wrote:
>
> > this popped up on the opensim-dev list: the UUID format change a while
> > ago to the dashed format, is this going to stay?
> >
> > --
> > dr dirk husemann, pervasive computing, ibm zurich research lab
> > --- hud at zurich.ibm.com --- +41 44 724 8573 --- SL: dr scofield
> >
> >
> >
> > _______________________________________________
> > libsl-dev mailing list
> > libsl-dev at openmv.org
> > http://openmv.org/cgi-bin/mailman/listinfo/libsl-dev
> >
> >
>
>
> --
> -------------------------------------------
> Fox Diller/Kyle Polulak
> CEO 0775222 B.C. LTD. DBA
> Magrathean Technologies
> Surrey, British Columbia
> Canada
> Email: fox at magrathean.ca
> Phone: +1.604.817.6942
> http://magrathean.ca
> -------------------------------------------
>
> ------------------------------
> _______________________________________________
> libsl-dev mailing listlibsl-dev at openmv.orghttp://openmv.org/cgi-bin/mailman/listinfo/libsl-dev
>
>
>
> --
> dr dirk husemann, pervasive computing, ibm zurich research lab
> --- hud at zurich.ibm.com --- +41 44 724 8573 --- SL: dr scofield
>
>
>
>
> ------------------------------
>
> _______________________________________________
> libsl-dev mailing listlibsl-dev at openmv.orghttp://openmv.org/cgi-bin/mailman/listinfo/libsl-dev
>
>
>
> --
> dr dirk husemann, pervasive computing, ibm zurich research lab
> --- hud at zurich.ibm.com --- +41 44 724 8573 --- SL: dr scofield
>
>
> _______________________________________________
> libsl-dev mailing list
> libsl-dev at openmv.org
> http://openmv.org/cgi-bin/mailman/listinfo/libsl-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080117/dbd474ae/attachment.html>


More information about the Opensim-dev mailing list