aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-26 09:46:41 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-16 19:59:40 +0000
commit21777daf6e03691a682018ef5b6b3c6a1cac1b3e (patch)
treed8a944381588e139c302228491e032e15e15dd6b /utils
parentMerge pull request #5042 (diff)
downloadmonero-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')
0 files changed, 0 insertions, 0 deletions