This file contains 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
// WastingTimeOnStackOverflowTests.swift Created by mason on 2016-09-18. | |
import XCTest | |
/// Measures performance of two different ways of checking whether an index is valid | |
/// for a given array (the variable "a" is an array of 1,000,000 unique strings, and | |
/// "val" is the index to be checked): | |
/// | |
/// a.indices.contains(val) | |
/// vs: |
This file contains 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
// | |
// Obfuscator.swift | |
// | |
// Created by Dejan Atanasov on 2017-05-31. | |
// | |
import Foundation | |
class Obfuscator: AnyObject { | |