[Top][All Lists]

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

[bug #47926] Poor performance in NSOperationQueue

From: Larry Campbell
Subject: [bug #47926] Poor performance in NSOperationQueue
Date: Sun, 15 May 2016 20:53:02 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17


                 Summary: Poor performance in NSOperationQueue
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Sun 15 May 2016 08:53:00 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



NSOperationQueue sorts the waiting queue every time it goes to pull an
operation off the queue. If the queue is large, this is very costly, and
caused huge slowdowns in an application of mine that routinely puts thousands
of operations into the queue.

You really only need to sort the queue after inserting something into it.

Patch attached.


File Attachments:

Date: Sun 15 May 2016 08:53:00 PM GMT  Name: NSOperation.m.patch  Size: 875B  
By: lcampbel
Patch for NSOperation.m


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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