scule icon indicating copy to clipboard operation
scule copied to clipboard

Potetial to improve perf

Open pi0 opened this issue 1 year ago • 0 comments

Currently we use a dynamic array as the buffer for splitter core (https://github.com/unjs/scule/blob/main/src/index.ts#L30). Since we know about the (maximum) string length, we could instead make an array with known length and assign chars too.

Howevewr this needs some benchmark script to verify, just made issue to not forget! (PR welcome for bench > try)

pi0 avatar Jan 10 '24 11:01 pi0