HI Riccardo, Thanks for looking into this. It's good to know going forward.
I really appreciate the time you took to look into this. On Jul 26, 1:52 pm, Riccardo Govoni ☢ <[email protected]> wrote: > I wrote a completely bogus microbenchmark (http://jsfiddle.net/eVpcw/1/) > to test the difference calling setRows() on a 30K table in the worst case > scenario (slicing the entire table), both with array version and the range > version. > > The results suggest negligible differences on chrome: 2ms (array) vs 0ms > (range) on chrome on my machine (which admittedly is quite powerful 2.6ghz > quadcore, so ymmv ). Firefox is more clear showing 19ms (array) vs 2ms > (range). > > So the array version is slower than the range version, although the numbers > are still pretty low. Since setRows(array) lets you do more complicated > things (such as row reordering and duplication) the underlying code is > likely heavier than the alternative. > > /R. > > On 19 July 2011 18:31, NA <[email protected]> wrote: > > > > > > > > > I realize this may not be much of a performance issue, but was > > wondering nonetheless. There are several instances when we wanted to > > just slice into our tables to get a piece, and if there's a preferred > > way of doing it, wanted to know. > > > On Jul 19, 10:19 am, NA <[email protected]> wrote: > > > Is there a difference when using setRows(min,max) vs > > > setRows(rowIndices) ? In particular, does setRows(min,max) just call > > > setRows(rowIndices) or does it do something faster? > > > > I am filtering tables with thousands of rows, and the rows I am > > > filtering are contiguous. If setRows(min,max) does something special > > > that makes it faster than setRows(rowIndices), I could call that > > > instead. > > > > Any thoughts on this? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Visualization API" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
