You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #7 method mentioned here is a good 10x faster compared to the one currently being used by this library.
That's the code:
// Pre-InitconstLUT_HEX_4b=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'];constLUT_HEX_8b=newArray(0x100);for(letn=0;n<0x100;n++){LUT_HEX_8b[n]=`${LUT_HEX_4b[(n>>>4)&0xF]}${LUT_HEX_4b[n&0xF]}`;}// End Pre-InitfunctiontoHex(buffer){letout='';for(letidx=0,edx=buffer.length;idx<edx;idx++){out+=LUT_HEX_8b[buffer[idx]];}returnout;}
Uppercase letters would need to be converted to lowercase though. And a Uint8Array needs to be passed to the function rather than an ArrayBuffer.
The text was updated successfully, but these errors were encountered:
The
#7
method mentioned here is a good 10x faster compared to the one currently being used by this library.That's the code:
Uppercase letters would need to be converted to lowercase though. And a Uint8Array needs to be passed to the function rather than an ArrayBuffer.
The text was updated successfully, but these errors were encountered: