Commit 948f655
committed
perf: use string.byte to optimize char lookup
The current code use many string.sub to manipulate string,
We can use string.byte to optimize check first/last char,
It is better than string.sub and does not generate temporary string1 parent 29ae1f7 commit 948f655
1 file changed
Lines changed: 159 additions & 195 deletions
0 commit comments