freebsd-skq/cddl
Pawel Jakub Dawidek 1698a6aec9 Dramatically optimize listing snapshots when user requests only snapshot
names and wants to sort them by name, ie. when executes:

	# zfs list -t snapshot -o name -s name

Because only name is needed we don't have to read all snapshot properties.

Below you can find how long does it take to list 34509 snapshots from a single
disk pool before and after this change with cold and warm cache:

before:

	# time zfs list -t snapshot -o name -s name > /dev/null
	cold cache: 525s
	warm cache: 218s

after:

	# time zfs list -t snapshot -o name -s name > /dev/null
	cold cache: 1.7s
	warm cache: 1.1s

MFC after:	1 week
2012-01-21 21:12:53 +00:00
..
compat/opensolaris Remove C constructs that are incompatible with C++ from various 2011-06-10 20:10:30 +00:00
contrib Dramatically optimize listing snapshots when user requests only snapshot 2012-01-21 21:12:53 +00:00
lib Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
sbin For now, remove MANFILTER from ZFS manpages (bad effect on html output). 2011-11-21 14:50:17 +00:00
usr.bin For now, remove MANFILTER from ZFS manpages (bad effect on html output). 2011-11-21 14:50:17 +00:00
usr.sbin For now, remove MANFILTER from ZFS manpages (bad effect on html output). 2011-11-21 14:50:17 +00:00
Makefile Apply a set of style.Makefile(5) changes to src/cddl/ makefiles. 2007-04-16 21:20:26 +00:00
Makefile.inc Do not lint code beyond necessity (with apologies to Wiliam of Ockham). 2010-11-18 16:32:52 +00:00