Re-written without OpenMP initially, but structured more simply, with the motivation of using modern compiler features and OpenMP 4.5 with 'taskloop' construct. https://developers.redhat.com/blog/2016/03/22/what-is-new-in-openmp-4-5-3/
icd9Comorbid_alt_Taskloop(icd9df, icd9Mapping, visitId, icd9Field,
threads = 8L, chunk_size = 256L, omp_chunk_size = 1L)icd9Comorbid_alt_Taskloop2(icd9df, icd9Mapping, visitId, icd9Field,
threads = 8L, chunk_size = 256L, omp_chunk_size = 1L)
icd9Comorbid_alt_Taskloop2
: Taskloop but finish with R transpose
# basic test # use tests/testthat/helper-base.R for two_pts and two_map comorbid(two_pts, two_map, comorbid_fun = icd:::icd9Comorbid_alt_Taskloop)