]> spindle.queued.net Git - midori/commitdiff
Inline parsing functions. 10% speedup during load
authorAlexander Butenko <a.butenka@gmail.com>
Mon, 6 Jun 2011 16:52:07 +0000 (12:52 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 8 Jun 2011 18:05:28 +0000 (20:05 +0200)
extensions/adblock.c

index e90c0c441bbe9f2532ee158ba5d54fcc2858686e..82d16bd9eed10d6949411e7f020bb42f4d07ce86 100644 (file)
@@ -1157,7 +1157,7 @@ adblock_compile_regexp (GHashTable* tbl,
     }
 }
 
-static gchar*
+static inline gchar*
 adblock_add_url_pattern (gchar* prefix,
                          gchar* type,
                          gchar* line)
@@ -1196,7 +1196,7 @@ adblock_add_url_pattern (gchar* prefix,
     return format_patt;
 }
 
-static void
+static inline void
 adblock_frame_add (gchar* line)
 {
     const gchar* separator = " , ";
@@ -1214,7 +1214,7 @@ adblock_frame_add (gchar* line)
     g_string_append (blockcss, line);
 }
 
-static void
+static inline void
 adblock_frame_add_private (const gchar* line,
                            const gchar* sep)
 {