# This file is a part of BAT.jl, licensed under the MIT License (MIT).

let
    posterior = BAT.example_posterior()

    dummy_samples = bat_sample(BAT.bat_determ_rng(), posterior.prior, IIDSampling(nsamples=10)).result
    precompile(bat_eff_sample_size, map(typeof, (dummy_samples,)))
    precompile(show, map(typeof, (dummy_samples,)))

    precompile(SampledDensity, map(typeof, (posterior, dummy_samples)))

    for mcalg in (MetropolisHastings(), HamiltonianMC())
        precompile(bat_sample, map(typeof, (posterior, MCMCSampling(mcalg = mcalg))))
    end
end
