coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coreutils] suggested cmp optimization for sparse files


From: Eric Blake
Subject: [coreutils] suggested cmp optimization for sparse files
Date: Fri, 23 Jul 2010 10:13:30 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1

On the coreutils list, there was a recent discussion about using fiemap and/or SEEK_DATA/SEEK_HOLE support in recent OSs to efficiently detect holes in sparse files:

http://lists.gnu.org/archive/html/bug-coreutils/2010-07/msg00100.html

I think porting cmp to use this would be a nice optimization to make it faster to run cmp on two large but sparse files, since you could efficiently skip runs of 0.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]