mmeierer / REndo

REndo - A R package to control for endogeneity by using internal instrumental variable models
15 stars 4 forks source link

Bugfix: copulaCorrection Rcpp unnecessary temp allocation #47

Closed pschil closed 4 years ago

pschil commented 4 years ago

use Map<> to map existing memory About another 10% faster

codecov[bot] commented 4 years ago

Codecov Report

Merging #47 into development will decrease coverage by 0.00%. The diff coverage is 93.93%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development      #47      +/-   ##
===============================================
- Coverage        96.71%   96.71%   -0.01%     
===============================================
  Files               38       38              
  Lines             1676     1675       -1     
===============================================
- Hits              1621     1620       -1     
  Misses              55       55              
Impacted Files Coverage Δ
R/f_heterrorsIV.R 100.00% <ø> (ø)
R/f_latentIV.R 97.77% <75.00%> (ø)
R/f_checkinput_helperfunctions.R 97.35% <100.00%> (ø)
R/f_heterrorsIV_IIV.R 97.05% <100.00%> (ø)
R/f_highermomentsIV_IIV.R 100.00% <100.00%> (ø)
src/f_copulacorrection_LL_rcpp.cpp 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a0db34b...e40559a. Read the comment docs.