News

Growing Objects and Loop Memory Pre-Allocation

By Thiago Milagres Preallocating Memory This will be a short post about a simple, but very important concept that can drastically increase the speed of poorly written codes. It is very common to see R loops written as follows: This seems like a natural way to write such a task: at each iteration,...
Want to leave a comment?