hivesolutions / cameo

A generic framework for iOS interaction
http://cameo.hive.pt
Apache License 2.0
0 stars 0 forks source link

HMProxy seems slow when requesting an image. #16

Closed acaldas closed 8 years ago

acaldas commented 8 years ago

Description

A GET request of a big image with the HMDataSerializer causes a delay on the main thread before invoking the callback.

Example

[self.proxy get:url
    parameters:params
    useSession:YES
    serializer:HMDataSerializer.singleton
      callback:^(NSData *response, NSError *error) {
          UIImage *image = [UIImage imageWithData:response];
          callback(image, error);
      }];
joamag commented 8 years ago

It may be related with this https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSOperationQueue_class/

joamag commented 8 years ago

This article talks about issues with multiple concurrent HTTP requests, that may be the problem...

joamag commented 8 years ago

Closing this as no more information exists about this one.