1

rds我有一个中等大小的data.frame,我测试了使用(未压缩)和feather格式将其存储和检索到网络驱动器。但结果表明,虽然write_feather比 快得多saveRDSread_feather但比 慢得多readRDS

问题)。这是否与我工作场所的特定网络配置有关(即只有我)?read_feather还是与处理and的远程文件的先天能力有关readRDS?我现在要坚持rds吗?

> print(object.size(impdata),unit="auto")
364.4 Mb

## SAVING
> system.time(feather::write_feather(impData,path="M:/waangData/test.feather"))
   user  system elapsed 
   0.52    0.16    4.80 
> system.time(saveRDS(impData,file="M:/waangData/Data4predictImp.rds",compress=F))
   user  system elapsed 
   4.23    2.35   28.61 

## READING
> system.time({t2=feather::read_feather("M:/waangData/test.feather")})
   user  system elapsed 
   0.59    1.54  134.39 
> system.time({t=readRDS("M:/waangData/Data4predictImp.rds")})
   user  system elapsed 
   2.36    0.61   19.59 
4

0 回答 0