SP 2010: People picker slow

Problem:   People Picker was hanging for about 2 minutes when searching for a user in the Grant Permissions area of the site

Cause:   People picker was not set to search a single forest

Resolution: run the following commands:

stsadm -o setproperty -url http://contoso.test.net -pn peoplepicker-distributionlistsearchdomains -pv corp.contoso.com

stsadm -o setproperty -pn peoplepicker-searchadforests -pv domain:corp.contoso.com -url http://contoso.test.net