perf: use uint8.subarray instead of uint8.slice
ThaUnknown opened this issue · comments
Cas_ commented
when migrating to uint8 from node buffer, code which used .slice was not changed, node:buffer's slice creates a subarray, but uint8.slice creates a copy, this needs to be updated to use .subarray, this would be another very big performance gain