s3: Cache results of finding printer names
commit03bfeb96c9391d9e08b50b1133e5674256fe4b90
authorVolker Lendecke <vl@samba.org>
Fri, 27 Aug 2010 12:44:16 +0000 (27 14:44 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 27 Aug 2010 14:47:27 +0000 (27 16:47 +0200)
treebd035ad63463b61242a8025c19c30bb2fd6c2242
parentf87ecd7e2e3d5adb37c7c4d3bdabd98bd3c84f4e
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)
source3/rpc_server/srv_spoolss_nt.c