Open cmdcolin opened 4 years ago
I have some pretty large buffers (~45MB) I'm decoding, and they can create a large "GC pressure"
With TextDecoder start: 42ms
With buffer.toString() start: 838.85302734375ms
I know there have been discussions about TextEncoder/TextDecoder in the past, but thought I'd mention the performance boost here
Linking to #60 for reference
I'm open to merging a PR that switches to TextDecoder. If you would like to see it implemented, please send a pull request!
TextDecoder
I have some pretty large buffers (~45MB) I'm decoding, and they can create a large "GC pressure"
With TextDecoder start: 42ms
With buffer.toString() start: 838.85302734375ms
I know there have been discussions about TextEncoder/TextDecoder in the past, but thought I'd mention the performance boost here