BASIX provides some efficient C/C++ implementations to speed up calculations in R.
conda install r::r-basix