From: Alexander Butenko Date: Sat, 19 Jun 2010 13:52:16 +0000 (-0400) Subject: Inline functions in adblock for 0.5 percent speedup X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633b7ed294561395f05fbedd2e3cb8b71a64f7c8;p=midori Inline functions in adblock for 0.5 percent speedup --- 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)