Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental] Second attempt toying around with data.table #908

Closed
wants to merge 3 commits into from

Conversation

JanMarvin
Copy link
Owner

This looks quicker on my desktop, especially for the update part. IIRC before the update I saw 3.x secs in the initial writing part and 11.x secs in the update part. With this PR 3.x secs in the initial part and 4.x secs in the update part.

library(openxlsx2)

rm(list=ls())
gc()

m <- 1e2
n <- 1e4
mm <- matrix(rnorm(n * m), n, m)
tmm <- t(mm)

invisible(gc())
wb <- wb_workbook()$add_worksheet()
beg <- Sys.time()
wb$add_data(x = mm)
end <- Sys.time()
print(end - beg)

beg <- Sys.time()
wb$add_data(x = mm)
end <- Sys.time()
print(end - beg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant