On Sat, Mar 22, 2014 at 3:00 AM, Zettifour <[email protected]> wrote:
> I want to migrate my OS X project to Linux (Ubuntu) but I run in some trouble
> with parallel background task. The app is killed after 30-40 seconds
> (message on the terminal: Killed). During running the GUI responses very
> slow and after some seconds the GUI fades out from grey to dark grey. My app
> processes a big number of csv files. ARC is enabled. Here is the compressed
> code:

>      NSMutableArray *taskArray = [[NSMutableArray alloc]init];

not sure how big a big number is,
normally i'd say try using initWithCapacity: here to avoid a moving
realloc temporarily holding 2x the array, but

>      [queue addOperations:taskArray waitUntilFinished:YES];

appears to call getObjects: so if you really can only hold 1x copy of
this array in memory that may only help it crash faster

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to