Created
April 24, 2018 14:07
-
-
Save vialyx/accde9621f5eceec89d7fb4584142376 to your computer and use it in GitHub Desktop.
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: - Autorelease pool | |
// Reduce device memory usage | |
for i in 0...1000 { | |
autoreleasepool { | |
let image = UIImage(named: "\(i)") | |
print("image: \(image?.size)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment