VandyApps / vandyvans-ios

Vandy Vans Project for iOS
8 stars 3 forks source link

Networking with AFNetworking 2.0 Is Really Slow #22

Closed sethfri closed 10 years ago

sethfri commented 10 years ago

After updating the project to use AFNetworking 2.0 and the AFHTTPSessionManager (along with dispatch_group to batch requests together), comparing the development version of Vandy Vans 1.1 to a live version of Vandy Vans 1.0.4 allowed me to realize that the network requests are now much, much slower. Obviously, this is a huge problem.

My thought is that this is likely due to the overhead of dispatch_group. So, my proposed solution is to replace the AFHTTPSessionManager with AFNetworking 2.0's AFHTTPRequestOperationManager. It's not as modern, which is very unfortunate, but it'll have to do.

sethfri commented 10 years ago

It turns out this was actually, stupidly, due to changing the base URL from api.syncromatics.com/ to vandyvans.com/