Skip to content

Commit 948f655

Browse files
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 string
1 parent 29ae1f7 commit 948f655

1 file changed

Lines changed: 159 additions & 195 deletions

File tree

0 commit comments

Comments
 (0)