mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2026-02-04 08:00:17 +00:00
Improve indexing performance by using .split instead of .components
and using substrings instead of needlessly copying strings
This commit is contained in:
@@ -14,7 +14,7 @@ internal struct ApkRequirement: Hashable {
|
||||
self.versionSpec = spec
|
||||
}
|
||||
|
||||
init(extract: String) throws(ParseError) {
|
||||
init(extract: Substring) throws(ParseError) {
|
||||
var comparer: ComparatorBits = []
|
||||
var dependStr = extract[...]
|
||||
let nameEnd: String.Index, versionStart: String.Index
|
||||
|
||||
Reference in New Issue
Block a user