mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-04 05:51:31 +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