delay memory allocation until after the first read. Saves a bunch of

2005-03-10  Sven Neumann  <sven@gimp.org>

	* glib/gfileutils.c (get_contents_stdio): delay memory allocation
	until after the first read. Saves a bunch of reallocs. Also
	increased the buffer size to 4096 bytes. (bug #165954)

	* tests/file-test.c (test_get_contents): added a (very basic) test
	for g_file_get_contents().
This commit is contained in:
Sven Neumann
2005-03-10 12:56:01 +00:00
committed by Sven Neumann
parent 2d7ada2898
commit aec8923fa6
7 changed files with 82 additions and 22 deletions

View File

@@ -1,3 +1,12 @@
2005-03-10 Sven Neumann <sven@gimp.org>
* glib/gfileutils.c (get_contents_stdio): delay memory allocation
until after the first read. Saves a bunch of reallocs. Also
increased the buffer size to 4096 bytes. (bug #165954)
* tests/file-test.c (test_get_contents): added a (very basic) test
for g_file_get_contents().
Wed Mar 9 19:06:45 2005 Manish Singh <yosh@gimp.org>
* glib/glib.symbols: Add g_file_replace.