bug-gnustep
[Top][All Lists]
Advanced

[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

URL:
  <http://savannah.gnu.org/bugs/?47926>

                 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

    _______________________________________________________

Details:

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
<http://savannah.gnu.org/bugs/download.php?file_id=37164>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47926>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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