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

Poor performance of read.metadata compared to showinf from bftools #12

Open
aoles opened this issue May 13, 2018 · 0 comments
Open

Poor performance of read.metadata compared to showinf from bftools #12

aoles opened this issue May 13, 2018 · 0 comments
Assignees

Comments

@aoles
Copy link
Owner

aoles commented May 13, 2018

Calls to read.metadata take significantly longer than readout using the command line tool showinf from bftools. For example, for the sample file from #11 it's 6x slower.

library(RBioFormats)
library(magrittr)
library(microbenchmark)

f <- "Data1051.cxd"

microbenchmark(times = 10,
  a = read.metadata(f),
  b = system(paste0("bftools/showinf -nopix ", f), intern = TRUE)
)

## Unit: seconds
##  expr       min        lq      mean    median        uq       max neval
##     a 11.337970 11.822990 12.102046 12.004656 12.198552 13.531961    10
##     b  1.773676  1.836837  1.894419  1.859554  1.896917  2.275523    10
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

No branches or pull requests

1 participant