discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperationQueue - Killed after 40 seconds


From: Matt Rice
Subject: Re: NSOperationQueue - Killed after 40 seconds
Date: Sat, 22 Mar 2014 09:08:44 -0700

On Sat, Mar 22, 2014 at 3:00 AM, Zettifour <zettifour@googlemail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]