[libc-commits] [libc] [libc] Use best-fit binary trie to make malloc logarithmic (PR #106259)
Daniel Thornburgh via libc-commits
libc-commits at lists.llvm.org
Thu Oct 10 16:03:40 PDT 2024
================
@@ -28,23 +30,23 @@ using LIBC_NAMESPACE::freelist_heap;
// made in tests leak and aren't free'd. This is fine for the purposes of this
// test file.
#define TEST_FOR_EACH_ALLOCATOR(TestCase, BufferSize) \
----------------
mysterymath wrote:
It still is trying two variants: the global heap and one instantiated locally. I couldn't immediately think of a way to rewrite it; maybe parameterized tests would work? Not sure whether that would end up more readable though.
https://github.com/llvm/llvm-project/pull/106259
More information about the libc-commits
mailing list