Thanks. Shark was deprecated in Xcode 4 and Daniel's
been trying to get the replacement, "Instruments", working,
with no luck.
>
> I tried gprof on linux, which seems give me some results. I could dig
> in more on this issue.
We need to figure out how to profile anyway.
I'd been putting it off because I hate learning
new tools. It always seems to take days to get
them running unless you have an expert next to you.
>
> In addition, repost what I said about the effective sample size just
> to say that this has nothing to do with R.
Thanks for the sample code. That certainly shows
the issue's not with R. I forgot how much other I/O
was going on on the Stan side. The issue has to
be in read_variables or add_chain because the FFT
comps for autocorrelation are fast.
It'd be nice to see where the bottlenecks were in the
code, but it might be obvious from inspection.
We can't have ESS taking two minutes to run for 8 schools!
- Bob
P.S. Daniel's also going to work on getting the one-chain
ESS working. We just need to make sure we scold the user
with a pop-up Gelman-bot if they ever try to use it.