freebsd-dev/cddl/contrib/opensolaris/lib
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
..
libctf/common Make this compile cleanly. 2008-04-26 04:22:32 +00:00
libdtrace In cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c, some 2011-12-16 15:12:42 +00:00
libgen/common MFV OpenSolaris DTrace userland bits. 2010-08-02 13:40:53 +00:00
libnvpair Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
libuutil/common Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
libzfs/common Dramatically optimize listing snapshots when user requests only snapshot 2012-01-21 21:12:53 +00:00
libzpool/common libzpool task_alloc: pass only valid flags to kmem_alloc 2011-10-21 13:53:06 +00:00
pyzfs/common Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00