我有一个中等大小的data.frame,我测试了使用rds
(未压缩)和feather
格式存储并检索到网络驱动器。但结果显示虽然write_feather
比saveRDS
快得多,但read_feather
比readRDS
慢得多。
问题(S)。这是否与我工作场所的特定网络配置有关(即它只是我)?或者它与处理read_feather
和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