Inline parsing functions. 10% speedup during load

This commit is contained in:
Alexander Butenko 2011-06-06 12:52:07 -04:00 committed by Christian Dywan
parent c71f3b37e4
commit 092834f65e

View 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)
{