[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8134] Speed up waitbar () by caching axes
From: |
Philipp Kutin |
Subject: |
[Octave-patch-tracker] [patch #8134] Speed up waitbar () by caching axes and patch handles in figure's __guidata__. |
Date: |
Mon, 29 Jul 2013 10:53:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 |
Follow-up Comment #4, patch #8134 (project octave):
By the way, my comment regarding set() is because when I profiled the test
loop[1], it showed up topmost. (About 50% IIRC, which is consistent with
results below.) But the situation is more complicated that this:
After
> w = waitbar(0);
> p = get(w, '__guidata__')(2)
here are two different loops:
> tic; for i=1:1000, set (p, "xdata", [0; 0.5; 0.5; 0]); end; toc
Elapsed time is 0.02628 seconds.
> tic; for i=1:1000, set (p, "xdata", [0; i/1000; i/1000; 0]); end; toc
Elapsed time is 8.736 seconds.
So maybe in the first one, there's some did-not-update optimization going on?
[1] When the profiler still worked, that is. I don't think the breakage is
related to my profexplore patch, since passing it "profile('info')" makes it
assertion-fail, too.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8134>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/