hugomrdias / rabin-wasm

Rabin fingerprinting implemented in WASM
28 stars 7 forks source link

fix: perf, revert array, shift #10

Closed hugomrdias closed 4 years ago

hugomrdias commented 4 years ago

/cc @MaxGraey do you have any idea why the Array version doesn't work? also i can't find any docs in the @inline decorators were they removed ?

MaxGraey commented 4 years ago

do you have any idea why the Array version doesn't work?

Array has slightly different layout and require __getArray instead __getUint32Array. But better use typed arrays when pass between host and wasm. It usually has faster interop.