Added memory optimization for StringIds

This commit is contained in:
Josh-Larson
2024-11-30 18:51:12 -06:00
parent 112a1c06cc
commit e29eb920b0

View File

@@ -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()
}
}