summaryrefslogtreecommitdiffstats
path: root/src/util/profile/ChangeLog
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-10-30 05:43:18 +0000
committerKen Raeburn <raeburn@mit.edu>2004-10-30 05:43:18 +0000
commit8a3056e4865063e4b2c2dce9d3316ae5526839da (patch)
tree21c27ce916fb938f9266e7c95b800d26c641b946 /src/util/profile/ChangeLog
parent78a29e652aeb95c0853c14c9ad4c44fc7952aff9 (diff)
downloadkrb5-8a3056e4865063e4b2c2dce9d3316ae5526839da.tar.gz
krb5-8a3056e4865063e4b2c2dce9d3316ae5526839da.tar.xz
krb5-8a3056e4865063e4b2c2dce9d3316ae5526839da.zip
call stat less often on krb5.conf
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. ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16847 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/ChangeLog')
-rw-r--r--src/util/profile/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 1366bd4d1..79a263f95 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,13 @@
+2004-10-30 Ken Raeburn <raeburn@mit.edu>
+
+ * 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.
+
2004-10-26 Ken Raeburn <raeburn@mit.edu>
Permit exporting profile file data into a buffer.