Changes suggested by lxs to reduce stat frequency to once per second. In parallel loops creating and destroying krb5 contexts on Mac OS X, this seems to improve performance by 10%, though it's hard to be sure because the times are variable. * prof_int.h (STAT_ONCE_PER_SECOND): Define. (struct _prf_data_t) [STAT_ONCE_PER_SECOND]: New field LAST_STAT. * prof_file.c (scan_shared_trees_locked, scan_shared_trees_unlocked): Redefine to do nothing for now. (profile_update_file_data) [STAT_ONCE_PER_SECOND]: If the current time is the same time as the last stat of the file, just return; otherwise, save away the current time. To generate a diff of this commit: cvs diff -r1.168 -r1.169 krb5/src/util/profile/ChangeLog cvs diff -r1.47 -r1.48 krb5/src/util/profile/prof_file.c cvs diff -r1.40 -r1.41 krb5/src/util/profile/prof_int.h