From 633b7ed294561395f05fbedd2e3cb8b71a64f7c8 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sat, 19 Jun 2010 09:52:16 -0400 Subject: [PATCH] Inline functions in adblock for 0.5 percent speedup --- extensions/adblock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/adblock.c b/extensions/adblock.c index 8b021afd..4623d595 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -591,7 +591,7 @@ adblock_browser_populate_tool_menu_cb (MidoriBrowser* browser, gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); } -static gboolean +static inline gboolean adblock_check_filter_options (GRegex* regex, const gchar* opts, const gchar* req_uri, @@ -607,7 +607,7 @@ adblock_check_filter_options (GRegex* regex, return FALSE; } -static gboolean +static inline gboolean adblock_is_matched_by_pattern (const gchar* req_uri, const gchar* page_uri) { @@ -634,7 +634,7 @@ adblock_is_matched_by_pattern (const gchar* req_uri, return FALSE; } -static gboolean +static inline gboolean adblock_is_matched_by_key (const gchar* opts, const gchar* req_uri, const gchar* page_uri) -- 2.39.5