diff options
author | Dan McGee <dpmcgee@gmail.com> | 2011-10-18 00:21:21 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-18 00:16:31 -0700 |
commit | be12681896fab9455eb65ea124df423b462e0072 (patch) | |
tree | 7a4e91fda2ebca5c5b049134152fdf2568d0cad9 /trace.c | |
parent | Git 1.7.7 (diff) | |
download | tgif-be12681896fab9455eb65ea124df423b462e0072.tar.xz |
pack-objects: mark add_to_write_order() as inline
This function is a whole 26 bytes when compiled on x86_64, but is
currently invoked over 1.037 billion times when running pack-objects on
the Linux kernel git repository. This is hitting the point where
micro-optimizations do make a difference, and inlining it only increases
the object file size by 38 bytes.
As reported by perf, this dropped task-clock from 84183 to 83373 ms, and
total cycles from 223.5 billion to 221.6 billion. Not astronomical, but
worth getting for adding one word.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.c')
0 files changed, 0 insertions, 0 deletions