diff options
author | Jacques Lucke <mail@jlucke.com> | 2020-02-10 13:47:17 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2020-02-10 13:47:17 +0300 |
commit | 9880bebd1a9a6262b16635bfeb7b003ea3ec0a9b (patch) | |
tree | ed9aa6a694c9d7e351e01200a8a5f48d678a0416 /source/blender/functions | |
parent | 9677fbe029283377e04b6168f0e3186802039e62 (diff) |
improve linear allocator
Diffstat (limited to 'source/blender/functions')
-rw-r--r-- | source/blender/functions/FN_attributes_ref.h | 4 | ||||
-rw-r--r-- | source/blender/functions/intern/multi_functions/network.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/functions/FN_attributes_ref.h b/source/blender/functions/FN_attributes_ref.h index 6c9d992798f..4a51ea3fec9 100644 --- a/source/blender/functions/FN_attributes_ref.h +++ b/source/blender/functions/FN_attributes_ref.h @@ -27,7 +27,7 @@ class AttributesInfo; class AttributesInfoBuilder : BLI::NonCopyable, BLI::NonMovable { private: - LinearAllocator<32> m_allocator; + LinearAllocator<> m_allocator; VectorSet<std::string> m_names; Vector<const CPPType *> m_types; Vector<void *> m_defaults; @@ -100,7 +100,7 @@ class AttributesInfoBuilder : BLI::NonCopyable, BLI::NonMovable { class AttributesInfo : BLI::NonCopyable, BLI::NonMovable { private: - LinearAllocator<32> m_allocator; + LinearAllocator<> m_allocator; StringMap<int> m_index_by_name; Vector<std::string> m_name_by_index; Vector<const CPPType *> m_type_by_index; diff --git a/source/blender/functions/intern/multi_functions/network.cc b/source/blender/functions/intern/multi_functions/network.cc index 39f3e5786dd..a180aada861 100644 --- a/source/blender/functions/intern/multi_functions/network.cc +++ b/source/blender/functions/intern/multi_functions/network.cc @@ -104,7 +104,7 @@ struct OwnVectorValue : public Value { class NetworkEvaluationStorage { private: - LinearAllocator<256> m_allocator; + LinearAllocator<> m_allocator; BufferCache &m_buffer_cache; IndexMask m_mask; Array<Value *> m_value_per_output_id; |