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
I'm trying to speed up conflux by replacing crc32 implementation with thirdparty high performance crc32 lib (which uses asm.js/wasm/simd), and I did some tests:
and here is my Crc32 implementation based on hash-wasm:
import'hash-wasm/dist/crc32.umd.min.js';/* global hashwasm */classCrc32{constructor(){}asyncinit(){letcrc32=awaithashwasm.createCRC32();crc32.init();this.crc32=crc32;}append(data){this.crc32.update(data);}get(){returnnewDataView(this.crc32.digest('binary').buffer).getUint32(0);}}exportdefaultCrc32;
Note: this Crc32 implementation defined a method async init(){...} and the method must be called and fulfilled before any append() call.
I'm trying to speed up conflux by replacing crc32 implementation with thirdparty high performance crc32 lib (which uses asm.js/wasm/simd), and I did some tests:
Note: tested with 1GB in-memory file, 2MB chunk size.
So my proposal is to adjust conflux to allow developers use/configure custom crc32 implementaion.
The text was updated successfully, but these errors were encountered: