dput/dget were not intended to save/restore large objects. Understand
what is happening in the use of dput/dget. dput is creating a text
file that can reconstitute the object with dget. dget is having to
read the file in and then parse it:
dget
function (file)
eval(parse(file = file))
I have a data structure that is fast to dput(), but very slow to dget(). On
disk, the file is about 35MB.
system.time(dget(r.txt))
user system elapsed
142.931.27 192.84
The same data structure is fast to save() and fast to load(). The .RData file on
disk is about 12MB.
2 matches
Mail list logo