URLSession moving slow when caching a firebase video url
问题 I initially asked this question, got the answer, and in the comments @LeoDabus said: NSData(contentsOf: url) it is not mean to use with non local resources urls He suggested I use URLSession which I did, but the response is very slow. I'm wondering am I doing something wrong. The video is 2mb if that makes any difference. Inside the the session's completionHandler I tried updating the returned data on the main queue but there was a scrolling glitch while doing that. Using DispatchQueue.global