Maximize the number of simultaneous http-downloads

后端 未结 4 925
不知归路
不知归路 2020-12-16 00:35

I\'am trying to perform as many as possible simultaneous http-downloads an IPad2 ( ios6.0 ). This is pure for testing what is possible on this device. Even not interested in

4条回答
  •  醉酒成梦
    2020-12-16 01:01

    Is there in IOS a limit on how many concurrent downloads?

    This is, by the way, a per server-based limit, not an iOS limit. If you try doing this from different servers at the same time, you will see that you can exceed your current limit.

    Is there an other way to perform these concurrent downloads?

    Obviously you could do something with GCD, too, manually managing concurrent requests, but I think NSOperationQueue is an excellent solution and see no reason to look further than that. I certainly don't see any advantages to using threads, either.

    You should benchmark the total elapsed time as the number of concurrent requests increases, but I'm sure you'll hit a point of diminishing returns. Just having more concurrent requests does not ensure better total performance.

提交回复
热议问题