diff --git a/src/main/kotlin/app/revanced/patcher/util/PatchClasses.kt b/src/main/kotlin/app/revanced/patcher/util/PatchClasses.kt index afcb8e0a..9e3043c8 100644 --- a/src/main/kotlin/app/revanced/patcher/util/PatchClasses.kt +++ b/src/main/kotlin/app/revanced/patcher/util/PatchClasses.kt @@ -18,7 +18,7 @@ class PatchClasses internal constructor( ) { internal constructor(set: Set) : - this(set.associateByTo(mutableMapOf()) { it.type }) + this(set.associateByTo(HashMap(set.size * 3 / 2)) { it.type }) internal fun addClass(classDef: ClassDef) { pool[classDef.type] = classDef