From: Alexander Butenko Date: Mon, 6 Jun 2011 16:52:07 +0000 (-0400) Subject: Inline parsing functions. 10% speedup during load X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=092834f65e7821610d190b0ca8567c887375c5a5;p=midori Inline parsing functions. 10% speedup during load --- diff --git a/extensions/adblock.c b/extensions/adblock.c index e90c0c44..82d16bd9 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -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) {