[Xfce4-commits] <midori:master> Inline parsing functions. 10% speedup during load

Christian Dywan noreply at xfce.org
Wed Jun 8 20:26:05 CEST 2011


Updating branch refs/heads/master
         to 092834f65e7821610d190b0ca8567c887375c5a5 (commit)
       from c71f3b37e4f6c6828e50f489adf426764fb334f5 (commit)

commit 092834f65e7821610d190b0ca8567c887375c5a5
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Mon Jun 6 12:52:07 2011 -0400

    Inline parsing functions. 10% speedup during load

 extensions/adblock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/adblock.c b/extensions/adblock.c
index e90c0c4..82d16bd 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)
 {



More information about the Xfce4-commits mailing list