Re: How to calculate a directory size?
- From: rcp <rcp@xxxxxxxxxxxx>
- Date: Thu, 09 Oct 2008 08:24:12 -0500
On Thu, 09 Oct 2008 13:07:22 +0000, viza wrote:
On Thu, 09 Oct 2008 03:19:22 -0700, db2 wrote:
Otherwise du is as fast as you can ever get - think about it - if perl
could do what du does faster than du, then du would be implemented in
perl (and that would be stupid).
Performance isn't the only consideration. Perl is a pretty heavy-duty
pre-req for a simple command like du.
As a matter of fact, du itself is sometimes too much of a resource hog.
Research the busybox command which is used to reduce the overall footprint
by implementing simple versions of many of these system utility commands
in a single, small, executable.
Remember, unix-like software often runs in small embedded devices with
little memory and/or disk space.
BUT -- it is unlikely that there could be any substantial improvement on
the performance of the du command. Depending on how critical this and
other filesystem performance is, the original poster could investigete
which harware, filesystem, and/or operating system best meets his needs.
- Prev by Date: Re: How to calculate a directory size?
- Next by Date: Re: How to calculate a directory size?
- Previous by thread: Re: How to calculate a directory size?
- Next by thread: Re: How to calculate a directory size?