glib/glib
Claudio Saavedra 05b1004080 Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
2008-03-22  Claudio Saavedra  <csaavedra@gnome.org>

	Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
	other optimizations

	* glib/gbookmarkfile.c: (bookmark_metadata_dump),
	(bookmark_item_dump), (g_bookmark_file_dump), (expand_exec_line):
	Replace all calls to g_string_append_printf with g_strconcat () or
	g_string_append () where appropriate, to reduce the file creation time.
	Also, use g_string_sized_new () with an appropriate buffer size instead
	of g_string_new (NULL), to reduce time spent in memory reallocation.
	(#523877, Claudio Saavedra, Emmanuele Bassi)


svn path=/trunk/; revision=6752
2008-03-22 23:52:39 +00:00
..
glib-mirroring-tab removed all .cvsignore files. SVN doesn't need them. 2007-01-03 11:22:36 +00:00
gnulib removed -GD to compile with msvc9 (vs2008) with less complains 2007-12-09 14:38:26 +00:00
libcharset initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional 2007-11-21 20:09:46 +00:00
pcre Update to 7.6, for real 2008-03-11 01:51:07 +00:00
tests /bin/ksh can't handle a for-loop with no arguments, so add a "." for when 2008-02-10 04:41:25 +00:00
update-pcre initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional 2007-11-21 20:09:46 +00:00
abicheck.sh Make it work regardless of --enable-debug 2007-08-08 22:06:47 +00:00
galloca.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
garray.c honour g_mem_gc_friendly settings when freeing slices, make sure 2006-01-25 15:51:43 +00:00
garray.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gasyncqueue.c Documentation updates 2008-02-23 05:06:18 +00:00
gasyncqueue.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gatomic.c Check whether assembler supports numerical local labels. 2007-11-18 17:42:59 +00:00
gatomic.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gbacktrace.c Assume string.h is available 2006-09-10 05:50:50 +00:00
gbacktrace.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gbase64.c Don't refuse to encode a single byte. (Milan Crha) 2007-11-23 17:58:00 +00:00
gbase64.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gbookmarkfile.c Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and 2008-03-22 23:52:39 +00:00
gbookmarkfile.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gbsearcharray.h inserted casts for C++. 2003-09-07 22:36:58 +00:00
gcache.c prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to 2005-11-01 18:10:31 +00:00
gcache.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gchecksum.c Make 'length' parameter signed to accomodate passing negative lengths. 2008-02-28 01:48:00 +00:00
gchecksum.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gcompletion.c Make passing NULL for new_prefix work as documented. (#338845, Yevgen 2006-04-18 02:21:43 +00:00
gcompletion.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gconvert.c glib/gutf8.c (g_get_charset) glib/gconvert.c (g_locale_from_utf8) Clarify 2008-02-21 13:07:49 +00:00
gconvert.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gdataset.c Accept NULL and return GQuark value of zero. (#446859) 2007-06-17 07:43:34 +00:00
gdataset.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gdatasetprivate.h carry out all dtalist pointer accesses atomically, some missing cases 2006-01-31 15:46:34 +00:00
gdate.c Require gtk-doc 1.8. 2007-11-25 06:05:06 +00:00
gdate.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gdebug.h Move the compiler-dependency in the G_GNUC_INTERNAL definition from 2007-05-17 16:36:53 +00:00
gdir.c Remove support for Windows 9x/ME, as will be done also in Pango and GTK+. 2006-08-29 22:45:00 +00:00
gdir.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gen-script-table.pl Add Unicode script support 2006-10-09 04:23:58 +00:00
gen-unicode-tables.pl Apply a patch from Behdad Esfahbod to use a faster lookup table for 2005-11-04 22:27:04 +00:00
gerror.c Improve wording for g_propagate_error docs. 2007-12-06 09:20:13 +00:00
gerror.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gfileutils.c Fixed some minor typos in the documentation. 2008-01-18 09:41:46 +00:00
gfileutils.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
ghash.c These functions prototype defines its output as void, and therefore they 2008-01-02 11:54:08 +00:00
ghash.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
ghook.c Check for NULL finalizer. (#476849, Areg Beketovski) 2007-09-19 20:36:53 +00:00
ghook.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gi18n-lib.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gi18n.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
giochannel.c Fix confusing error message. (#521028, Peter Kjellerstedt) 2008-03-10 15:55:16 +00:00
giochannel.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
giounix.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
giowin32.c When WSAEnumNetworkEvents() signals FD_CONNECT that means that the 2007-07-06 01:22:53 +00:00
gkeyfile.c Return NULL when the key is not found. (#513171, Дилян 2008-02-23 05:25:27 +00:00
gkeyfile.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
glib-object.h Include gtypes.h not gobject/gtype.h 2001-11-18 00:38:48 +00:00
glib.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
glib.rc.in Don't use autoconf variables for the resource object files on Win32 any 2005-07-08 23:04:06 +00:00
glib.symbols Remove g_uri_get_scheme. 2008-03-05 01:56:24 +00:00
glibintl.h Add in the new symbols 2007-11-28 14:35:14 +00:00
glist.c fix last commit. 2008-03-01 16:27:50 +00:00
glist.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmacros.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmain.c Further patch by Vlad Grecescu: Drop the code path that called 2008-02-26 17:26:28 +00:00
gmain.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmappedfile.c Fix typos 2007-08-20 23:34:35 +00:00
gmappedfile.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmarkup.c Bug 521591 – g_markup_parse_context_parse() creates GError message that 2008-03-11 15:43:25 +00:00
gmarkup.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmem.c use %G_GSIZE_FORMAT instead of %lu since sizes have changed from gulong to 2008-01-31 11:44:51 +00:00
gmem.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmessages.c http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html 2007-12-10 14:07:42 +00:00
gmessages.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gmirroringtable.h Updated to Unicode Character Database 5.0.0. 2006-07-21 22:23:51 +00:00
gnode.c Move docs inline. (#316260, Philippe Blain) 2008-01-28 04:50:12 +00:00
gnode.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
goption.c Removed unused variable is_main_group. (#512381, Wouter Bolsterlee) 2008-01-27 23:57:32 +00:00
goption.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gpattern.c applied significant recursion complexity optimization, based on a patch 2005-09-20 11:20:23 +00:00
gpattern.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gprimes.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gprimes.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gprintf.c Update fix for #469051 2007-08-22 19:31:27 +00:00
gprintf.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gprintfint.h Fix #147651, reported by Oliver Guntermann: 2004-07-21 17:51:28 +00:00
gqsort.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gqsort.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gquark.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gqueue.c Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support 2007-03-06 18:43:10 +00:00
gqueue.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
grand.c Renamed to glib/gthreadprivate.h and moved system thread identifier 2006-05-10 00:44:50 +00:00
grand.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gregex.c Avoid some useless casts from const gchar * to gchar *. (#516597, patch by 2008-02-17 14:26:30 +00:00
gregex.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
grel.c Fix several cases of deref-before-NULL-check. (#341191, Pascal Terjan) 2006-05-13 04:36:45 +00:00
grel.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gscanner.c reverted premature commit which broke GScanner ABI and API, #415323. 2007-03-16 10:28:13 +00:00
gscanner.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gscripttable.h Add Unicode script support 2006-10-09 04:23:58 +00:00
gsequence.c /bin/ksh can't handle a for-loop with no arguments, so add a "." for when 2008-02-10 04:41:25 +00:00
gsequence.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gshell.c Fix PLT issues 2006-09-30 14:06:45 +00:00
gshell.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gslice.c Remove C99 comments 2008-01-01 04:13:26 +00:00
gslice.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gslist.c Fix a typo 2008-03-10 16:50:13 +00:00
gslist.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gspawn-win32-helper.c New internal function. 2008-02-24 21:15:47 +00:00
gspawn-win32.c Must set the GError also in the unexpected EOF case. 2008-03-03 04:23:16 +00:00
gspawn.c Fix fdwalk on OS X 2008-01-06 23:12:24 +00:00
gspawn.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gstdio.c Fix typos 2007-08-20 23:34:35 +00:00
gstdio.h glib/glib.symbols don't macroized g_access, g_chdir, and g_unlink either, 2006-01-05 06:21:49 +00:00
gstrfuncs.c Change prototype to take msgctxtid + offset instead of two strings, to 2007-12-10 05:24:36 +00:00
gstrfuncs.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gstring.c Fixed some minor typos in the documentation. 2008-01-18 09:41:46 +00:00
gstring.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gtester-report commented class definitions. moved HTML character escaping out of 2007-12-20 15:35:21 +00:00
gtester.c /bin/ksh can't handle a for-loop with no arguments, so add a "." for when 2008-02-10 04:41:25 +00:00
gtestutils.c Add Since: markers to docs. (#518556, Jerry Yu) 2008-02-25 18:24:30 +00:00
gtestutils.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gthread.c Fix warnings from sparse. (#487491, Kjartan Maraas) 2007-10-21 17:01:29 +00:00
gthread.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gthreadpool.c Don't use "wait" as parameter name. (#379207, Christian Biere) 2006-12-17 20:27:02 +00:00
gthreadpool.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gthreadprivate.h Move the compiler-dependency in the G_GNUC_INTERNAL definition from 2007-05-17 16:36:53 +00:00
gtimer.c Check for gmtime_r. Use gmtime_r when available. (#511807, Sebastian 2008-01-28 06:27:28 +00:00
gtimer.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gtree.c honour g_mem_gc_friendly settings when freeing slices, make sure 2006-01-25 15:51:43 +00:00
gtree.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gtypes.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gunibreak.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gunibreak.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
gunichartables.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
gunicode.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gunicodeprivate.h Make g_unichar_combining_class() public. (#453998) 2007-07-19 13:46:05 +00:00
gunicollate.c Consistently use gsize rather than size_t. (#333310, Morten Welinder) 2006-12-28 04:48:06 +00:00
gunicomp.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
gunidecomp.c Mention g_utf8_normalize() returns NULL on invalid string. (#501997) 2007-12-06 10:22:13 +00:00
gunidecomp.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
guniprop.c Document that GUnicodeScript is interchangeable with PangoScript. 2007-08-21 02:51:11 +00:00
gurifuncs.c Remove deprecated symbols we kept for one release. 2008-03-04 14:51:34 +00:00
gurifuncs.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gutf8.c glib/gutf8.c (g_get_charset) glib/gconvert.c (g_locale_from_utf8) Clarify 2008-02-21 13:07:49 +00:00
gutils.c New internal function. 2008-02-24 21:15:47 +00:00
gutils.h Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode 2008-03-18 20:06:04 +00:00
gwin32.c 2.15.6 2008-02-25 19:32:42 +00:00
gwin32.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
Makefile.am Don't bother defining Autoconf variables for glib.def, gmodule.def, 2008-03-16 10:16:57 +00:00
makefile.msc.in update 2008-02-03 22:41:06 +00:00
makegalias.pl Still need to include glibconfig.h 2005-03-14 04:30:25 +00:00
pltcheck.sh Skip g_bit_*(). Inline functions may end up with a local plt if the 2008-02-06 17:35:25 +00:00
win_iconv.c Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa) 2008-03-20 02:40:23 +00:00