From e29eb920b03a5e8877ed4c1411df3d81d4c07097 Mon Sep 17 00:00:00 2001 From: Josh-Larson Date: Sat, 30 Nov 2024 18:51:12 -0600 Subject: [PATCH] Added memory optimization for StringIds --- .../com/projectswg/common/data/encodables/oob/StringId.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/projectswg/common/data/encodables/oob/StringId.kt b/src/main/java/com/projectswg/common/data/encodables/oob/StringId.kt index 5af56b3..94091a0 100644 --- a/src/main/java/com/projectswg/common/data/encodables/oob/StringId.kt +++ b/src/main/java/com/projectswg/common/data/encodables/oob/StringId.kt @@ -49,8 +49,8 @@ class StringId(file: String, key: String? = null) : OutOfBandData, MongoPersista this.file = split[0] this.key = if ((split.size >= 2)) split[1] else "" } else { - this.file = file - this.key = key + this.file = file.intern() + this.key = key.intern() } }