This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Time to decode 10,000 Person struct's from JSON: | |
Argo (Simple): 8.563 seconds | |
measureBlock { | |
let _ : [Person]? = decode(data) | |
} | |
Argo (Decomp'd): 3.344 | |
measureBlock { | |
let json: Argo.JSON = JSON.parse(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - String | |
extension String { | |
func rangeOf(x: String) -> Range<Index>? { | |
return characters.rangeOf(x.characters) | |
} | |
} | |
extension String.CharacterView { |