You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the copies made by downloader will remain identical copies of files in the cache (e.g. basedisk), and the files are often quite large.
On macOS (with apfs) using unix.Clonefile instead of fs.CopyFile will be much faster and save disk space, as the copy will point to the same datablocks as the source until they are modified (via "Copy on Write"). Only file metadata is copied.
Description
Most of the copies made by
downloader
will remain identical copies of files in the cache (e.g.basedisk
), and the files are often quite large.On macOS (with apfs) using
unix.Clonefile
instead offs.CopyFile
will be much faster and save disk space, as the copy will point to the same datablocks as the source until they are modified (via "Copy on Write"). Only file metadata is copied.Clonefile was added to
x/sys/unix
in golang/sys@2334cc1The text was updated successfully, but these errors were encountered: