Skip to content

Instantly share code, notes, and snippets.

@pboesu
Created October 11, 2017 21:14
Show Gist options
  • Save pboesu/2109e0bf7387181072f1be478b089dcd to your computer and use it in GitHub Desktop.
Save pboesu/2109e0bf7387181072f1be478b089dcd to your computer and use it in GitHub Desktop.
rucrdtw memory leak
gc()
#devtools::install_github("pboesu/rucrdtw", ref = "expose_distance_calculations")
library(rucrdtw)
set.seed(12444)
x = rnorm(10^4)
y = rnorm(10^4)
gctorture(on = TRUE)
for (i in 1:(2*10^3)) {
if (i %% 1000 == 0) print(i)
ucrdtw_vv(x, y, dtwwindow = 0.01)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment