|
From: <sv...@va...> - 2014-07-06 18:35:27
|
Author: philippe
Date: Sun Jul 6 18:35:18 2014
New Revision: 14135
Log:
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.
Modified:
trunk/coregrind/m_debuginfo/image.c
Modified: trunk/coregrind/m_debuginfo/image.c
==============================================================================
--- trunk/coregrind/m_debuginfo/image.c (original)
+++ trunk/coregrind/m_debuginfo/image.c Sun Jul 6 18:35:18 2014
@@ -571,7 +571,7 @@
}
// 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
|