flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: UID performance
Date Fri, 18 Oct 2013 11:21:52 GMT
Hi ,  I have tried out of curiosity other optimizations, such as using ByteArray to generate
the string.

I have two variants:
V3: generates the random hex bytes one by one, and writes them to the BA
V4: generates 4 or 8 random bytes in one shot, and writes them to the BA  (hexa in lowercase,
to avoid call toUppercase() )

The results are the following : (200,000x , debug = true) 

Original:	4.48s 
JMcLean:	3.905s 
V3:		2.972s 
V4 : 		2.404s 

Remark:  V4 is the fastest, but it generates an UID with lower case abcdef instead of ABCDEF.
I don't know if this is acceptable (are we breaking some code if we use lowercase instead
of uppercase).

If you want, I can post the code for the two variants...


-----Message d'origine-----
De : Justin Mclean [mailto:justin@classsoftware.com] 
Envoyé : vendredi 18 octobre 2013 11:17
À : dev@flex.apache.org
Objet : Re: UID performance


See http://gaming.adobe.com/technologies/scout/

"For a limited time, you can get Scout as part of a free Creative Cloud membership."

Get it while you can :-)


View raw message