From cc8b13a00bfe7083ae68755e547a39cd762f2963 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Tue, 25 Jul 2006 20:40:40 +0000 Subject: [lib] Optimise thread_call by caching pointer to thread history in the thread 2006-07-25 Paul Jakma * thread.h: (struct thread) Add a cache pointer to the struct cpu_thread_history, if it is known - saving hash lookup on each thread_call. * thread.c: (thread_call) Cache the pointer to the cpu_thread_history, so that future thread_calls of same thread can avoid the hash_lookup. --- lib/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/ChangeLog') diff --git a/lib/ChangeLog b/lib/ChangeLog index 02148671..7a744393 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,12 @@ +2006-07-25 Paul Jakma + + * thread.h: (struct thread) Add a cache pointer to the struct + cpu_thread_history, if it is known - saving hash lookup on + each thread_call. + * thread.c: (thread_call) Cache the pointer to the + cpu_thread_history, so that future thread_calls of same + thread can avoid the hash_lookup. + 2006-07-10 Andrew J. Schorr * vty.c: (vty_log_out) Do not call vty_close, because this could -- cgit v1.2.1