diff -ur samba-orig/source/printing/nt_printing.c samba-2.2.8a/source/printing/nt_printing.c --- samba-orig/source/printing/nt_printing.c Fri Mar 14 21:34:48 2003 +++ samba-2.2.8a/source/printing/nt_printing.c Fri Feb 13 23:11:03 2004 @@ -351,6 +351,9 @@ { int32 c_setprinter; int32 printer_count = 0; + + /* traversing this db is too expensive to justify */ + return 0; tdb_lock_bystring(tdb_printers, GLOBAL_C_SETPRINTER,0); diff -ur samba-orig/source/smbd/session.c samba-2.2.8a/source/smbd/session.c --- samba-orig/source/smbd/session.c Fri Feb 1 22:14:56 2002 +++ samba-2.2.8a/source/smbd/session.c Fri Feb 13 23:09:44 2004 @@ -55,6 +55,9 @@ vuser->session_id = 0; + /* the session claim code was the main performance cost for DVA */ + return True; + /* don't register sessions for the guest user - its just too expensive to go through pam session code for browsing etc */ if (strequal(vuser->user.unix_name,lp_guestaccount(-1))) {