pglpm / bayes_nonparametric_inference

Software development for "Bayesian nonparametric population inference". In other words, just the direct application of probability theory to get the most general, principled, model-free inference we can have.
Creative Commons Zero v1.0 Universal
4 stars 1 forks source link

Avoid use of `data.table`, or block its multi-threading #36

Open pglpm opened 3 weeks ago

pglpm commented 3 weeks ago

The package data.table can start several R threads, which leads to a slow down if this is done in an already-parallelized computation. Two ways out of this:

– Avoid use of data.table. Indeed I don't think we really need it (and I find some of its syntax a bit nonsensical)

– Use setDTthreads(1) when calling data.table.

choisant commented 2 weeks ago

I think the nicest solution is to avoid it, if that is possible.

pglpm commented 2 weeks ago

I'll try to do this next.