[json] IJPL-172038 Prefer HashMap and HashSet over the Linked* collections to reduce FUS performance impact

(cherry picked from commit f033e0ec51114f2b4dc54b76a4e7c8a13137edc2)

IJ-CR-149952

GitOrigin-RevId: ae4411032c6a63effc1ee104e268b10472717849
This commit is contained in:
Nikita Katkov
2024-12-04 21:44:47 +00:00
committed by intellij-monorepo-bot
parent 8ba490d2fa
commit a12c2ab9e8
@@ -17,9 +17,9 @@ internal class JsonSchemaHighlightingSessionStatisticsCollector {
}
private inner class JsonSchemaHighlightingSession {
val featuresWithCount = mutableMapOf<JsonSchemaFusFeature, Int>()
val featuresWithCount = HashMap<JsonSchemaFusFeature, Int>()
var schemaType: String? = null
val requestedRemoteSchemas = mutableSetOf<String>()
val requestedRemoteSchemas = HashSet<String>()
}
private val currentHighlightingSession = ThreadLocal<JsonSchemaHighlightingSession?>()