Closed didil closed 1 year ago
Can you please run the same test as Martin to see the perf difference?
Before the PR I get:
real 0m4.698s
user 0m3.435s
sys 0m0.239s
With this PR I get:
real 0m1.567s
user 0m0.330s
sys 0m0.233s
Performance seems to be back to normal 👍
found a bug (crashes on chinese language website https://www.zhihu.com/signin due to the approximation). working on fixing it
Fixes #68 Use single call to runewidth.StringWidth to optimize performance