Created
April 30, 2025 21:35
-
-
Save jacobsapps/074cb87ac3d0a02fd56333362a4a979c 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
private func loadImages() { | |
let urls = (0..<50_000).compactMap { _ in | |
Bundle.main.url(forResource: "monalisa", withExtension: "jpg") | |
} | |
for url in urls { | |
autoreleasepool { | |
if let data = try? Data(contentsOf: url), | |
let image = UIImage(data: data) { | |
print(image.size) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment