octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53794] ishold(hax) is slow when an axis handl


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53794] ishold(hax) is slow when an axis handle is passed in because of ancestor() routine
Date: Mon, 30 Apr 2018 16:45:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #1, bug #53794 (project octave):

The attached changeset should make the cost of ishold(hax) compared to
ishold() about 40% rather than roughly 300%.

Before:


>> plot(1:50)
>> tic; hax = gca(); for i=1:10000; ishold(hax); endfor; toc
Elapsed time is 8.71327 seconds.


After:


>> plot(1:50)
>> tic; hax = gca(); for i=1:10000; ishold(hax); endfor; toc
Elapsed time is 4.28007 seconds.


(file #44063)
    _______________________________________________________

Additional Item Attachment:

File name: octave-ishold_axes_handle_speedup-djs2018apr30.patch Size:1 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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