This is an automated email from the ASF dual-hosted git repository.

shuwenwei pushed a commit to branch fix_tvlist_partial_clone_dev_1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit e581011c652a383afd827c59e07479c1be04baa7
Author: shuwenwei <[email protected]>
AuthorDate: Wed Aug 12 15:06:24 2026 +0800

    perf: replace remaining shallowSizeOf list allocations in AlignedTVList
---
 .../java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
index c22a7c34aa9..9bcaac501e7 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
@@ -1349,7 +1349,7 @@ public abstract class AlignedTVList extends TVList {
 
   /** Initial list-container memory before the first aligned row is written. */
   public static long alignedTvListInitialMemCost(int measurementColumnCount) {
-    long arrayListShallowSize = 
RamUsageEstimator.shallowSizeOfInstance(ArrayList.class);
+    long arrayListShallowSize = 
MemoryEstimationHelper.ARRAY_LIST_INSTANCE_SIZE;
     long listWithReferencesSize =
         arrayListShallowSize + 
RamUsageEstimator.sizeOfObjectArray(measurementColumnCount);
     return 2 * listWithReferencesSize
@@ -1564,7 +1564,7 @@ public abstract class AlignedTVList extends TVList {
               - RamUsageEstimator.sizeOfObjectArray(oldColumnCount);
     }
     long newColumnContainerCost =
-        RamUsageEstimator.shallowSizeOf(new ArrayList<>())
+        MemoryEstimationHelper.ARRAY_LIST_INSTANCE_SIZE
             + (timestamps.isEmpty() ? 0 : 
RamUsageEstimator.sizeOfObjectArray(0));
     return size + newColumnCount * newColumnContainerCost;
   }

Reply via email to