freebsd-dev/sys/cddl/contrib/opensolaris/uts/common
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
..
ctf This commit was generated by cvs2svn to compensate for changes in r179193, 2008-05-22 07:04:10 +00:00
dtrace Revert the approach for skipping lockstat_probe_func call when doing 2011-12-12 23:29:32 +00:00
fs Dramatically optimize listing snapshots when user requests only snapshot 2012-01-21 21:12:53 +00:00
os Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
sys Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
zmod - rename atomic.S and crc32.c to avoid collisions when linking zfs in to the kernel 2009-05-09 01:45:55 +00:00
Makefile.files Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00