The efficient way to create GUID/UUID in JavaScript (with explanation) 22 May I want to share with you the fastest GUID/UUID generator method (as far as I know). Million executions of this implementation takes just 32.5 seconds, which is the fastest i've ever seen in a browser (the only solution without loops/iterations). The function is as simple as: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 * @example af8a8416-6e18-a307-bd9c-f2c947bbb3aa } } 1 2 3 4 5 console.time('t'); guid(); console.timeEnd('t'); I'm sure most of you will understand what I did there,
Read full article from The efficient way to create GUID/UUID in JavaScript (with explanation) | Slavik Meltser
No comments:
Post a Comment