r-lib / sparsevctrs

Sparse vector class using ALTREP
https://r-lib.github.io/sparsevctrs/
Other
12 stars 1 forks source link

don't use named list as data1 #67

Closed EmilHvitfeldt closed 4 months ago

EmilHvitfeldt commented 5 months ago

If this also translates to the altrep objects we can get a nice improvements.

we don't use the names internally anyways as we are extracting by index

lobstr::obj_size(list(1, 2, 3))
#> 248 B
lobstr::obj_size(list(h = 1, d = 2, e = 3))
#> 608 B

Created on 2024-05-24 with reprex v2.1.0