diff options
author | itchyny <itchyny@cybozu.co.jp> | 2024-03-02 00:33:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 16:33:17 +0100 |
commit | ce0e788ce28c675808a6bc9a34f8db1199cd7cef (patch) | |
tree | af497f3fe3d560a92d5dd6e25874bfd07e0fc8b3 /NEWS.md | |
parent | 913b26469f47351a9f75a1bc4145f45421115e37 (diff) |
improve tonumber/0 performance by parsing input as number literal
Previously, the tonumber/0 filter parses the input as JSON values, but
this is less-performant on large non-number strings. Parsing the input
string as number literal fixes the performance issue. Also, this fix
changes the filter to reject numbers with white spaces.
Diffstat (limited to 'NEWS.md')
0 files changed, 0 insertions, 0 deletions