read_feather网络驱动器速度慢

时间:2017-04-19 06:56:41

标签: r feather

我有一个中等大小的data.frame,我测试了使用rds(未压缩)和feather格式存储并检索到网络驱动器。但结果显示虽然write_feathersaveRDS快得多,但read_featherreadRDS慢得多。

问题(S)。这是否与我工作场所的特定网络配置有关(即它只是我)?或者它与处理read_featherreadRDS的远程文件的先天能力有关?我现在要坚持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 

0 个答案:

没有答案