mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-12 06:16:18 +00:00
Compare commits
2 Commits
v21.0.0-de
...
v21.0.0-de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62191e3c4a | ||
|
|
1358d3fa10 |
@@ -1,3 +1,10 @@
|
||||
# [21.0.0-dev.4](https://github.com/ReVanced/revanced-patcher/compare/v21.0.0-dev.3...v21.0.0-dev.4) (2024-11-05)
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* Use smallest lookup map for strings ([1358d3f](https://github.com/ReVanced/revanced-patcher/commit/1358d3fa10cb8ba011b6b89cfe3684ecf9849d2f))
|
||||
|
||||
# [21.0.0-dev.3](https://github.com/ReVanced/revanced-patcher/compare/v21.0.0-dev.2...v21.0.0-dev.3) (2024-11-05)
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
org.gradle.parallel = true
|
||||
org.gradle.caching = true
|
||||
version = 21.0.0-dev.3
|
||||
version = 21.0.0-dev.4
|
||||
|
||||
@@ -72,10 +72,9 @@ class Fingerprint internal constructor(
|
||||
internal fun matchOrNull(): Match? {
|
||||
if (_matchOrNull != null) return _matchOrNull
|
||||
|
||||
val lookupMaps = lookupMaps
|
||||
|
||||
// Find the first
|
||||
var match = strings?.firstNotNullOfOrNull { lookupMaps.methodsByStrings[it] }?.let { methodClasses ->
|
||||
var match = strings?.mapNotNull {
|
||||
lookupMaps.methodsByStrings[it]
|
||||
}?.minByOrNull { it.size }?.let { methodClasses ->
|
||||
methodClasses.forEach { (classDef, method) ->
|
||||
val match = matchOrNull(classDef, method)
|
||||
if (match != null) return@let match
|
||||
@@ -83,7 +82,6 @@ class Fingerprint internal constructor(
|
||||
|
||||
null
|
||||
}
|
||||
|
||||
if (match != null) return match
|
||||
|
||||
classes.forEach { classDef ->
|
||||
|
||||
Reference in New Issue
Block a user