[Bf-blender-cvs] [ff42240ea24] temp-chunked-list: progress

Jacques Lucke noreply at git.blender.org
Wed Sep 7 19:14:27 CEST 2022


Commit: ff42240ea24d77ce758da316502723d07d8b14a9
Author: Jacques Lucke
Date:   Wed Sep 7 13:54:22 2022 +0200
Branches: temp-chunked-list
https://developer.blender.org/rBff42240ea24d77ce758da316502723d07d8b14a9

progress

===================================================================

M	source/blender/blenlib/BLI_vector_list.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_vector_list.hh b/source/blender/blenlib/BLI_vector_list.hh
index cefd60b88bd..34dac27e053 100644
--- a/source/blender/blenlib/BLI_vector_list.hh
+++ b/source/blender/blenlib/BLI_vector_list.hh
@@ -28,10 +28,19 @@
 
 namespace blender {
 
+template<typename T> struct VectorListChunk {
+  /** Start of this chunk. */
+  T *begin;
+  /** End of this chunk. */
+  T *capacity_end;
+};
 template<typename T,
          int64_t InlineBufferCapacity = default_inline_buffer_capacity(sizeof(T)),
          typename Allocator = GuardedAllocator>
 class VectorList {
+  T *current_end_;
+  T *current_capacity_end_;
+  VectorListChunk *current_chunk_;
 };
 
 }  // namespace blender



More information about the Bf-blender-cvs mailing list