Memory optimization: Do not retain LinkedHashSets in caches

LinkedHashSets are replaced with tight ArrayLists
This commit is contained in:
Andrey Breslav
2014-11-01 13:38:24 +02:00
parent bfdb756e22
commit 60ff2df597
2 changed files with 5 additions and 4 deletions
@@ -100,7 +100,7 @@ public abstract class LazyJavaMemberScope(
}
}
functions
ArrayList(functions)
}
data class MethodSignatureData(
@@ -237,6 +237,7 @@ public abstract class LazyJavaMemberScope(
computeNonDeclaredProperties(name, properties)
properties.trimToSize()
properties
}
@@ -323,7 +324,7 @@ public abstract class LazyJavaMemberScope(
addExtraDescriptors(result)
return result
return ArrayList(result)
}
protected open fun addExtraDescriptors(result: MutableSet<DeclarationDescriptor>) {