Open TimTaylor opened 1 year ago
The vector based stack works so much better now by not making copies with each append (something in 3.4.x?) If you really want to use it in practice, just make sure you trim the vector length when it is shortened enough, say the length is less than 0.5 * the preallocated length.
Feel free to submit the change for the vignette, I will render the site once the update is merged.
Cool. Will try and PR something over the next couple of weeks.
For completeness would it be worth including a vector based stack for comparison in the benchmarking vignette? The performance of one based on Martin Morgan's suggestion on stackoverflow is better than a list/environment based one.
Created on 2023-01-04 with reprex v2.0.2