如题,代码如下: NSData *fData = UIImageJPEGRepresentation(photo, 1.0);
本来单个也占不了多大的内存。但是我要做的是批量图片上传。 就单这行代码,内存急剧上升,处理几十张图片,就从几十升到几百MB了。 那么请问如何解决这个问题呢?
ringa_lee
1) Control the Buff threshold when reading into memory, split the task and do more IO several times... 2) Dedicated background thread processing tasks
1) Control the Buff threshold when reading into memory, split the task and do more IO several times...
2) Dedicated background thread processing tasks