From 73e5c35fc4c6d0d3fea2d1cab2099982868b5e09 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Tue, 3 Dec 2024 19:26:47 -0600 Subject: [PATCH] Add a todo comment about potential GC reduction in DTO --- .../distanthorizons/core/sql/dto/FullDataSourceV2DTO.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/sql/dto/FullDataSourceV2DTO.java b/core/src/main/java/com/seibel/distanthorizons/core/sql/dto/FullDataSourceV2DTO.java index 58400cd88..2993359b4 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/sql/dto/FullDataSourceV2DTO.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/sql/dto/FullDataSourceV2DTO.java @@ -55,6 +55,10 @@ public class FullDataSourceV2DTO implements IBaseDTO, INetworkObject /** only for the data array */ public int dataChecksum; + // TODO pool byte arrays, and use JDBC blobs or stream said arrays, to potentially reduce GC load + //resultSet.getBinaryStream(0); + //resultSet.getBlob(0).free(); + public byte[] compressedDataByteArray; /** @see EDhApiWorldGenerationStep */