You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/06 12:17:35 UTC

[GitHub] markusthoemmes opened a new issue #3395: Generate ActivationId string directly without going through UUID.

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:
users@infra.apache.org


With regards,
Apache Git Services