Eric Firing wrote: > Glenn, > > The slowness is almost entirely in the line > > rgba = lut[xa] > > where lut is a 2-D uint8 table and xa is an array of indices. > > I have replaced that in svn with > > rgba = lut.take(xa, axis=0) > > which cuts the time in half!
This should be reduced by another factor of 1/2 to 1/3 if you use numpy svn as of this morning. The take method got a speedup treatment. I would be interested to know how it works now in your application. It may still be quite a bit slower than the solution you settled on. Eric ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users