mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 00:18:44 +02:00
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:
committed by
Sven Neumann
parent
2d7ada2898
commit
aec8923fa6
@@ -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.
|
||||
|
Reference in New Issue
Block a user