Currently mashr has implementations of some chunks of computations in R AND CPP both, a relic at prototyping stage. Though the default is CPP for now, we have not formally established under which situation CPP code will way out-perform R codes -- considering much as been done also on the algebra end to optimize computations.
To make the code less complicated to maintain and add to, we might want to benchmark performance more formally and keep only one winner version for each R vs CPP computation.
Currently mashr has implementations of some chunks of computations in R AND CPP both, a relic at prototyping stage. Though the default is CPP for now, we have not formally established under which situation CPP code will way out-perform R codes -- considering much as been done also on the algebra end to optimize computations.
To make the code less complicated to maintain and add to, we might want to benchmark performance more formally and keep only one winner version for each R vs CPP computation.