WIP: Functions: new local allocator for better memory reuse and performance #104630

Draft
Jacques Lucke wants to merge 44 commits from JacquesLucke/blender:local-allocator into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 609e9c42ca - Show all commits

View File

@ -171,7 +171,8 @@ class ValueAllocator : NonCopyable, NonMovable {
this->deallocate_variable_values<VariableValue_OneVector>();
for (void *buffer : small_span_buffers_free_list_) {
local_allocator_.deallocate(buffer, small_value_max_size, small_value_max_alignment);
local_allocator_.deallocate(
buffer, small_value_max_size * array_size_, small_value_max_alignment);
}
for (const auto item : span_buffers_free_lists_.items()) {
const int element_size = item.key;