cmdstan icon indicating copy to clipboard operation
cmdstan copied to clipboard

Recommend using `ccache`?

Open andrjohns opened this issue 1 year ago • 3 comments

Summary:

There can a lot of repeated compilation across different Stan programs if the same templates are being instantiated. We could suggest using ccache to help reduce compile times?

Current Version:

v2.34.1

andrjohns avatar May 04 '24 14:05 andrjohns

I thought ccache only cached object files? If so, the fact that we precompile main.o and have a precompiled header is probably already as good as you can get, but id be interested if you’ve tried it and seen even more speed ups

WardBrian avatar May 04 '24 14:05 WardBrian

Hmm good point, I should actually do some testing. I'll have a look and see if there's a noticeable difference

andrjohns avatar May 04 '24 14:05 andrjohns

@andrjohns did you have a chance to see if this made a difference?

WardBrian avatar May 22 '24 17:05 WardBrian