mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-25 00:26:52 +02:00
Merge branch 'backport-2251-string-performance-glib-2-70' into 'glib-2-70'
Backport !2251 “GString: Bump minimum size” to glib-2-70 See merge request GNOME/glib!2253
This commit is contained in:
commit
494062b36f
@ -123,7 +123,7 @@ g_string_sized_new (gsize dfl_size)
|
||||
string->len = 0;
|
||||
string->str = NULL;
|
||||
|
||||
g_string_maybe_expand (string, MAX (dfl_size, 2));
|
||||
g_string_maybe_expand (string, MAX (dfl_size, 64));
|
||||
string->str[0] = 0;
|
||||
|
||||
return string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user