mjskay / tidybayes

Bayesian analysis + tidy data + geoms (R package)
http://mjskay.github.io/tidybayes
GNU General Public License v3.0
718 stars 59 forks source link

Speed up add_draws by using nested format internally #205

Open mjskay opened 4 years ago

mjskay commented 4 years ago

And add_[fitted/predicted]_draws as well.

The nested format worked very well at speeding up spread_draws by nesting draws and then leaving off chain information until the end. This vastly improves the performance of some reshaping operations that are currently expensive.