From a12c2ab9e86f60631dedb77530b6fec94843b656 Mon Sep 17 00:00:00 2001 From: Nikita Katkov Date: Tue, 3 Dec 2024 14:56:22 +0100 Subject: [PATCH] [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 --- .../fus/JsonSchemaHighlightingSessionStatisticsCollector.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json/src/com/jetbrains/jsonSchema/fus/JsonSchemaHighlightingSessionStatisticsCollector.kt b/json/src/com/jetbrains/jsonSchema/fus/JsonSchemaHighlightingSessionStatisticsCollector.kt index 2cbe9bd2397f..02229010aca9 100644 --- a/json/src/com/jetbrains/jsonSchema/fus/JsonSchemaHighlightingSessionStatisticsCollector.kt +++ b/json/src/com/jetbrains/jsonSchema/fus/JsonSchemaHighlightingSessionStatisticsCollector.kt @@ -17,9 +17,9 @@ internal class JsonSchemaHighlightingSessionStatisticsCollector { } private inner class JsonSchemaHighlightingSession { - val featuresWithCount = mutableMapOf() + val featuresWithCount = HashMap() var schemaType: String? = null - val requestedRemoteSchemas = mutableSetOf() + val requestedRemoteSchemas = HashSet() } private val currentHighlightingSession = ThreadLocal()