This patch for xfaces 3.3 will disable checking for ain/dom/user image files and only check for ain/dom/user/face files. This will speed up the facedb search considerably and is recommended if all your facedb databases have image files named "face.*", like the picons databases do. Be sure to compile xfaces with FACE_FILES_ONLY defined to enable this optimization. Steve Kinzler, kinzler@cs.indiana.edu, Apr 95 *** face_search_facedb.c.orig Sat Mar 12 19:38:42 1994 --- face_search_facedb.c Tue Apr 25 19:12:39 1995 *************** *** 535,541 **** */ FaceSearchFacedbMakeName(file, info, i, buffer1); ! /* * Try to load this guy. */ --- 535,541 ---- */ FaceSearchFacedbMakeName(file, info, i, buffer1); ! #ifndef FACE_FILES_ONLY /* * Try to load this guy. */ *************** *** 550,556 **** XtFree(hostdata); return 1; } ! /* * try adding "/face" and see what we find. */ --- 550,556 ---- XtFree(hostdata); return 1; } ! #endif /* * try adding "/face" and see what we find. */ *************** *** 592,598 **** /* * try for user in the MISC directory. */ ! sprintf(buffer1, "%sMISC/%s", file, username); #ifdef FACEDB_DEBUG --- 592,598 ---- /* * try for user in the MISC directory. */ ! #ifndef FACE_FILES_ONLY sprintf(buffer1, "%sMISC/%s", file, username); #ifdef FACEDB_DEBUG *************** *** 605,611 **** XtFree(hostdata); return 1; } ! sprintf(buffer1, "%sMISC/%s/face", file, username); #ifdef FACEDB_DEBUG --- 605,611 ---- XtFree(hostdata); return 1; } ! #endif sprintf(buffer1, "%sMISC/%s/face", file, username); #ifdef FACEDB_DEBUG *************** *** 632,638 **** */ FaceSearchFacedbMakeName(file, info, i, buffer1); ! /* * Try to load this guy. */ --- 632,638 ---- */ FaceSearchFacedbMakeName(file, info, i, buffer1); ! #ifndef FACE_FILES_ONLY /* * Try to load this guy. */ *************** *** 653,659 **** return 1; } ! /* * try adding "/face" and see what we find. */ --- 653,659 ---- return 1; } ! #endif /* * try adding "/face" and see what we find. */ *************** *** 704,710 **** /* * One last try. The MISC directory. Look for "unknown" */ ! sprintf(buffer1, "%sMISC/unknown", file); #ifdef FACEDB_DEBUG --- 704,710 ---- /* * One last try. The MISC directory. Look for "unknown" */ ! #ifndef FACE_FILES_ONLY sprintf(buffer1, "%sMISC/unknown", file); #ifdef FACEDB_DEBUG *************** *** 721,727 **** return 1; } ! sprintf(buffer1, "%sMISC/unknown/face", file); #ifdef FACEDB_DEBUG --- 721,727 ---- return 1; } ! #endif sprintf(buffer1, "%sMISC/unknown/face", file); #ifdef FACEDB_DEBUG