Skip to content

Instantly share code, notes, and snippets.

View janeshsutharios's full-sized avatar

Janesh suthar janeshsutharios

View GitHub Profile
// 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:
@janeshsutharios
janeshsutharios / Obfuscator.swift
Created February 21, 2019 11:59 — forked from DejanEnspyra/Obfuscator.swift
Obfuscation of hard-coded security-sensitive strings.
//
// Obfuscator.swift
//
// Created by Dejan Atanasov on 2017-05-31.
//
import Foundation
class Obfuscator: AnyObject {