size: Get the item's size from the daemon rather than compute it.
authorLudovic Courtès <ludo@gnu.org>
Wed, 19 Aug 2015 09:33:51 +0000 (11:33 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 19 Aug 2015 09:39:18 +0000 (11:39 +0200)
commit83bde59fb3db5827002a0049a5571e4163af5ff1
tree627683584696b3ec7017325a8e3a4bf3c28417ab
parent40a7d4e58ba05f39bf11edab68de6d3ae9c43306
size: Get the item's size from the daemon rather than compute it.

This removes all I/O, which obviously makes things faster.

* guix/scripts/size.scm (file-size, store-item-exists?): Remove.
  (query-path-info*): New procedure.
  (file-size*): Rename to...
  (file-size): ... this; adjust caller.  Use 'query-path-info*' instead of
  'file-size'.
guix/scripts/size.scm