diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-26 09:46:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-16 19:59:40 +0000 |
commit | 21777daf6e03691a682018ef5b6b3c6a1cac1b3e (patch) | |
tree | d8a944381588e139c302228491e032e15e15dd6b /utils/.gitignore | |
parent | Merge pull request #5042 (diff) | |
download | monero-21777daf6e03691a682018ef5b6b3c6a1cac1b3e.tar.xz |
epee: speedup word/number matching
Number matching semantics are slightly changed: since this is used
as a filter to check whether a number is signed and/or floating
point, we can speed this up further. strto* functions are called
afterwards and will error out where necessary. We now also accept
numbers like .4 which were not accepted before.
The strto* calls on a boost::string_ref will not access unallocated
memory since the parsers always stop at the first bad character,
and the original string is zero terminated.
in arbitrary time measurement units for some arbitrary test case:
match_number2: 235 -> 70
match_word2: 330 -> 108
Diffstat (limited to 'utils/.gitignore')
0 files changed, 0 insertions, 0 deletions