freebsd-dev/cddl/contrib
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
..
dtracetoolkit Port dtruss to FreeBSD. 2010-08-24 23:24:43 +00:00
opensolaris Dramatically optimize listing snapshots when user requests only snapshot 2012-01-21 21:12:53 +00:00