mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-18 00:43:56 +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)
|
# [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.parallel = true
|
||||||
org.gradle.caching = 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? {
|
internal fun matchOrNull(): Match? {
|
||||||
if (_matchOrNull != null) return _matchOrNull
|
if (_matchOrNull != null) return _matchOrNull
|
||||||
|
|
||||||
val lookupMaps = lookupMaps
|
var match = strings?.mapNotNull {
|
||||||
|
lookupMaps.methodsByStrings[it]
|
||||||
// Find the first
|
}?.minByOrNull { it.size }?.let { methodClasses ->
|
||||||
var match = strings?.firstNotNullOfOrNull { lookupMaps.methodsByStrings[it] }?.let { methodClasses ->
|
|
||||||
methodClasses.forEach { (classDef, method) ->
|
methodClasses.forEach { (classDef, method) ->
|
||||||
val match = matchOrNull(classDef, method)
|
val match = matchOrNull(classDef, method)
|
||||||
if (match != null) return@let match
|
if (match != null) return@let match
|
||||||
@@ -83,7 +82,6 @@ class Fingerprint internal constructor(
|
|||||||
|
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match != null) return match
|
if (match != null) return match
|
||||||
|
|
||||||
classes.forEach { classDef ->
|
classes.forEach { classDef ->
|
||||||
|
|||||||
Reference in New Issue
Block a user