Skip to content
Prev 174186 / 398506 Next

object size of a matrix and a list

You were doing for a small size where the overhead masked the gains.
Here a larger case where you can see the differences:
[1] 800112
[1] 600408
List of 2
 $ a: int [1:500, 1:100] 1 1 1 1 1 1 1 1 1 1 ...
 $ b: num [1:500, 1:100] 1 1 1 1 1 1 1 1 1 1 ...
How big do you expect your data items to get?  No need to try to
optimize if they are not large (e.g., taking up 10% of your available
memory).
On Wed, Mar 18, 2009 at 10:14 PM, Kyeongmi Cheon <katie.cheon at gmail.com> wrote: