mirror of
https://github.com/ProjectSWGCore/pswgcommon.git
synced 2026-01-15 23:04:19 -05:00
Added memory optimization for StringIds
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user