aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorTue Ly <lntue@google.com>2021-11-11 11:22:52 -0500
committerTue Ly <lntue@google.com>2021-11-11 18:33:24 -0500
commit499ca806dcfb5f5c842fb240e150140fb15011ed (patch)
treea8d03c7eefef161d0a8b38d17220cecf53a11170 /lldb/source/Plugins/ScriptInterpreter/Python
parent98f80d248d9c888c2219454c1f655bc324b80cdc (diff)
downloadllvm-499ca806dcfb5f5c842fb240e150140fb15011ed.zip
llvm-499ca806dcfb5f5c842fb240e150140fb15011ed.tar.gz
llvm-499ca806dcfb5f5c842fb240e150140fb15011ed.tar.bz2
[libc] Simplify decimalStringToFloat and hexadecimalStringToFloat and improve their performance.
Combine two loops in decimalStringToFloat and hexadecimalStringToFloat that extract the digits and re-arrange them a little bit. This slightly improves the performance of strtof and strtod: Running libc_str_to_float_comparison_test parse-number-fxx-test_data/data/* on my machine (Ryzen 1700) - with glibc: ~1.92 seconds - with current implementation: ~1.78 seconds - with this change: ~1.67 seconds Differential Revision: https://reviews.llvm.org/D113681
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions