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

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

[Octave-bug-tracker] [bug #40663] scatter and scatter3 terribly slow wit


From: Rik
Subject: [Octave-bug-tracker] [bug #40663] scatter and scatter3 terribly slow with real-valued color vector
Date: Fri, 22 Nov 2013 17:12:00 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0

Follow-up Comment #8, bug #40663 (project octave):

I believe Jordi was the one who benchmarked scatter early on and came up with
the policy of accumulating multiple colors under the same patch.  We could
move everything to a single patch command along the lines of


patch (x(1:1000), y(1:1000), c(1:1000), 'marker', 'o', 'linestyle', 'none',
'facecolor', 'none') 


But I benchmarked it and it is still pretty slow.



   #                Function Attr     Time (s)        Calls
-----------------------------------------------------------
   1                            R        5.491           47
  68                 drawnow             4.467            1
  18             __go_axes__             0.010            1
  66            __go_patch__             0.006            1
  28                     set             0.003            1
  30               __patch__             0.001            1
  45             __isequal__             0.001            2
  53 __patch__>setvertexdata             0.000            1
   2                   patch             0.000            1
  16                    axes             0.000            1
  55                ismember             0.000            2
  54     __patch__>delfields             0.000            2
  20                ancestor             0.000            1
  15                     get             0.000            4
  12                     gca             0.000            1
  44                 isequal             0.000            2
  67             addlistener             0.000            7
   3    __plt_get_axis_arg__             0.000            1
  38                isvector             0.000            4
  52                     isa             0.000            2



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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