s3: Cache results of finding printer names
authorVolker Lendecke <vl@samba.org>
Fri, 27 Aug 2010 12:44:16 +0000 (14:44 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 27 Sep 2010 19:29:02 +0000 (21:29 +0200)
commit0212976791b5f3e547e840db9d44edba63e96c89
tree1c31ed8708d647fe6a3df1db4929f73363bf4a2e
parentc72fe31a4c25eb9d43893ab4d53db50288765eea
s3: Cache results of finding printer names

With hundreds of printers or on a slow machine, this can become expensive.

Problem reported and patch sponsored by DESY, Hamburg (www.desy.de)

Fix bug #7656 (Scalability problem with hundreds of printers).
(cherry picked from commit de445e29ce944985651cbd62c8203cc9ace51a25)
source3/rpc_server/srv_spoolss_nt.c