aboutsummaryrefslogtreecommitdiff
path: root/R/mkinmod.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-07-08 17:39:44 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-07-08 17:39:44 +0200
commitf35e0b3d3b9f41bee2f5cc357afcb69e3aadad15 (patch)
tree675d90c517a0e8a32c7c3af8ef631a5c588503d4 /R/mkinmod.R
parent16a7ed9548b37fe3c68c993651226fdc2dda6402 (diff)
Store DLL info in mkinmod objects for performance
Thanks to Tomas Kalibera for his analysis of the problem on the r-package-devel mailing list and for the suggestion on how to fix it. See the current benchmark vignette for the new data on mkin 1.1.1 with R 4.2.1, with unprecedented performance.
Diffstat (limited to 'R/mkinmod.R')
-rw-r--r--R/mkinmod.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/mkinmod.R b/R/mkinmod.R
index 071f9e0e..d8740aed 100644
--- a/R/mkinmod.R
+++ b/R/mkinmod.R
@@ -464,9 +464,9 @@ mkinmod <- function(..., use_of_ff = "max", name = NULL,
if (!inherits(model$cf, "try-error")) {
if (is.null(dll_dir)) {
if (!quiet) message("Temporary DLL for differentials generated and loaded")
- dll_info <- inline::getDynLib(model$cf)
+ model$dll_info <- inline::getDynLib(model$cf)
} else {
- dll_info <- inline::moveDLL(model$cf, name, dll_dir,
+ model$dll_info <- inline::moveDLL(model$cf, name, dll_dir,
unload = unload, overwrite = overwrite, verbose = !quiet)
}
}

Contact - Imprint