]> spindle.queued.net Git - midori/commitdiff
Inline functions in adblock for 0.5 percent speedup
authorAlexander Butenko <a.butenka@gmail.com>
Sat, 19 Jun 2010 13:52:16 +0000 (09:52 -0400)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Jun 2010 14:22:16 +0000 (16:22 +0200)
extensions/adblock.c

index 8b021afd10b4312bbc712873ca88fcd60de4fce3..4623d595407b378d8e81b665a5a8654b748d6d91 100644 (file)
@@ -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)