From 092834f65e7821610d190b0ca8567c887375c5a5 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Mon, 6 Jun 2011 12:52:07 -0400 Subject: [PATCH] Inline parsing functions. 10% speedup during load --- extensions/adblock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5