[Mono-devel-list] [PATCH] make --debug symfiles use mmap
Ben Maurer
bmaurer at ximian.com
Sat Jan 22 13:04:23 EST 2005
Hey guys,
I noticed that --debug loads the symfile using g_file_get_contents. This
means that memory for the entire file is malloc'd and the entire file
has to be read from the disk.
This patch uses mono_raw_buffer_* so that we can mmap the file, like we
do with IL images.
This saves quite a bit of ram (think: the size of the .mdb file for
every loaded assembly).
-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metadata-debug-symfile-use-mmap.patch
Type: text/x-patch
Size: 5016 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050122/f2672bde/attachment.bin
More information about the Mono-devel-list
mailing list