Skip to content

Some GString optimizations

Matthias Clasen requested to merge gstring-optimizations into main

Both GMarkup and the GTK css parser use g_string_append(_len) a lot.

This MR adds static inline versions of these functions.

In particular, it makes the compiler see (and optimize away) strlen (LITERAL) for g_string_append (str, LITERAL) calls.

Merge request reports