cmdstanr icon indicating copy to clipboard operation
cmdstanr copied to clipboard

Add a way to optionally store exe in object

Open rok-cesnovar opened this issue 4 years ago • 3 comments

See https://github.com/paul-buerkner/brms/issues/1135#issuecomment-816884013 and discussion that followed.

rok-cesnovar avatar Jun 05 '21 14:06 rok-cesnovar

This would be a great feature. Great to see it planned. Minor note: since the objects are already serialized, they are ripe for easy & fast compression using fst (see https://www.fstpackage.org/index.html ). Not necessarily a major concern, but may be nice to help keep object size down. I've not checked so don't know how big/small the compiled versions tend to be.

JWiley avatar Sep 29 '21 03:09 JWiley

Thanks @JWiley for the suggestion!

On Ubuntu, non-trivial models should not exceed 3-5MB. It will vary depending on the C++ compiler and CmdStan version, but its somewhere in that range. It should be similar on Macs. On Windows its usually up to 2x larger.

I think with the amount of RAM/disk space available on modern systems these file/object sizes should not be problematic. If there is a use-case for it though, we would be happy to consider adding as a non-mandatory dependency.

rok-cesnovar avatar Sep 29 '21 06:09 rok-cesnovar

I am going to move this one out of the 1.0 release milestone. It should be done soon after, but I don't see it being critical for 1.0.

rok-cesnovar avatar Nov 03 '21 17:11 rok-cesnovar