-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
The new feature introduced by #32 seems to have memory leak issue, as the example shown below the DelayedArray object gets bigger after each iteration of subassignment
library(HDF5Array)
M <- matrix(1:100, nrow=10)
tmp <- tempfile()
h5write(M, tmp, "data")
hm <- HDF5Array(tmp, "data")
object.size(hm)
#> 2144 bytes
set.seed(123)
for(k in 1:10)
{
i <- sample(10,10)
j <- sample(10,10)
hm[i, j][hm[i, j] >0] <- 0
}
object.size(hm)
#> 10593240 bytesCreated on 2018-10-01 by the reprex package (v0.2.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels