aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorEric <eric@efcs.ca>2023-10-13 11:56:24 -0400
committerGitHub <noreply@github.com>2023-10-13 11:56:24 -0400
commit20f39bf48218515e05126d02f26cec73ac655b0f (patch)
tree7317959b6fb29f227c680500f2799046abd3322f /lldb/source/Commands/CommandObjectExpression.cpp
parent160e8eb4496104a1d0ed77649af7e8bb679252f9 (diff)
downloadllvm-20f39bf48218515e05126d02f26cec73ac655b0f.zip
llvm-20f39bf48218515e05126d02f26cec73ac655b0f.tar.gz
llvm-20f39bf48218515e05126d02f26cec73ac655b0f.tar.bz2
Lower std::string's alignment requirement from 16 to 8. (#68807)
This allows smaller allocations to occur, closer to the actual std::string's required size. This is particularly effective in decreasing the allocation size upon initial construction (where __recommend is called to determine the size). Although the memory savings per-string are never more than 8 bytes per string initially, this quickly adds up. And has lead to not insigficant memory savings at Google. Unfortunately, this change is ABI breaking because it changes the value returned by max_size. So it has to be guarded.
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions