aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDaniel Thornburgh <dthorn@google.com>2024-11-20 13:54:00 -0800
committerGitHub <noreply@github.com>2024-11-20 13:54:00 -0800
commitc3207c31fce8afa4e5ae728804f18b4e863197e7 (patch)
tree3b88b320fbd2e2435efb5c36decb240fb1695319 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent4087b871c5aa80ae2f5425533eb83d909231caa7 (diff)
downloadllvm-c3207c31fce8afa4e5ae728804f18b4e863197e7.zip
llvm-c3207c31fce8afa4e5ae728804f18b4e863197e7.tar.gz
llvm-c3207c31fce8afa4e5ae728804f18b4e863197e7.tar.bz2
[libc] Use best-fit binary trie to make malloc logarithmic (#106259)
This reworks the free store implementation in libc's malloc to use a dlmalloc-style binary trie of circularly linked FIFO free lists. This data structure can be maintained in logarithmic time, but it still permits a relatively small implementation compared to other logarithmic-time ordered maps. The implementation doesn't do the various bitwise tricks or optimizations used in actual dlmalloc; it instead optimizes for (relative) readability and minimum code size. Specific optimization can be added as necessary given future profiling.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions