You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mikemahoney218 "Always pre-allocate your vectors" is a bit of an outdated dogma. Since v3.4, R already over-allocates memory by a small factor (x1.05) every time a vector needs to grow!
Mike Mahoney - Pre-allocating vectors is for nerds
Or rather: growing objects is inefficient. But it’s maybe not as big a deal as I’d believed.
https://www.mm218.dev/posts/2023-08-29-allocations/index.html
The text was updated successfully, but these errors were encountered: