markusthoemmes opened a new issue #3395: Generate ActivationId string directly 
without going through UUID.
URL: https://github.com/apache/incubator-openwhisk/issues/3395
 
 
   ActivationIDs are generated via UUID.randomUUID() today. Looking through the 
code of that you'll notice that it only generates a random hexadecimal String, 
delimited with dashes. We then proceed to cut out the dashes to end up at our 
ActivationId format.
   
   We can straight up jump to generate the String ourselves. This even has the 
added benefit of adding more entropy to that String, because the UUID contains 
some bytes to determine its version (which are fixed bytes).
   
   There are even libraries out there which make UUID serdes as fast as 
possible because it's seemingly slow and generates lots of garbage 
(https://github.com/jchambers/fast-uuid).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to