This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] save space by using enum bitfields
- From: Jim Blandy <jimb at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: drow at mvista dot com, ac131313 at redhat dot com, ezannoni at redhat dot com,gdb-patches at sources dot redhat dot com, msnyder at redhat dot com
- Date: 19 Aug 2003 14:27:06 -0500
- Subject: Re: [rfa] save space by using enum bitfields
- References: <200308182235.h7IMZFB4008176@duracef.shout.net>
Okay, I'm sold. Looks good to commit to me.
Michael Elizabeth Chastain <mec@shout.net> writes:
> Here is some more data on a larger dataset.
>
> The target program is a specific gdb.exe file with
> LD_LIBRARY_PATH set to /usr/lib/debug, so that I am getting
> glibc-2.2.93-5-rh with debugging symbols turned on.
>
> I use "gdb -readnow" to read all the symbols on startup.
> That increases memory usage from 20 megabytes to 100 megabytes.
>
> 'ps axuww' says:
>
> old: 117280 k
> new: 108112 k
>
> 'maint space 1' says:
>
> old: 99352576
> new: 89997312
>
> This is 8% to 10% savings here on a 100 megabyte process.