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

Maurice 

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

Hi,

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 :-)

Justin

Reply via email to