From 4dac9693528b14e55e07ce24cfdb442de2f22e8b Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Sun, 6 Jul 2014 18:35:18 +0000 Subject: [PATCH] Mark inline get function in image.c (called very often, and has a fast/slow case) This slightly improve the performance of reading the image. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14135 --- coregrind/m_debuginfo/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/image.c b/coregrind/m_debuginfo/image.c index d05809995..2be6fd306 100644 --- a/coregrind/m_debuginfo/image.c +++ b/coregrind/m_debuginfo/image.c @@ -571,7 +571,7 @@ static UChar get_slowcase ( DiImage* img, DiOffT off ) } // This is called a lot, so do the usual fast/slow split stuff on it. */ -static UChar get ( DiImage* img, DiOffT off ) +static inline UChar get ( DiImage* img, DiOffT off ) { /* Most likely case is, it's in the ces[0] position. */ /* ML_(img_from_local_file) requests a read for ces[0] when