On Mon, 18 Mar 2002, Ben Wing wrote:
Side note: `string-memq' is gone in ben-mule. This is vaguely irritating
to me because I use it in my init file...
i have no clue. i wish you could find out; it doesn't happen for me.
my xemacs.exe is using 15 MB.
Lucky you. I get ~70MB of image by the time it hits the splash screen,
though memprof reports that only 25MB or so of that lives through an
initial GC at that stage.
[...]
i wrote a fun to show memory usage. update to the latest cvs and do
That shows nothing particularly useful or unusual, at least for me, but
then, neither did my hacked up version of the same. :)
What /does/ show up is the reason why the XEmacs image balloons to 80MB
or so during startup.
Fdowncase, through casify_object and make_string mallocs 36,057,648
bytes of data during startup. That seems ... excessive to me.
Once the startup is done and XEmacs is sitting in the *scratch* buffer
this drops to some 59,236 bytes still allocated. So, this is clearly
temporary data -- it's just very *big* temporary data.
Perhaps this can be done during the build process rather than every
startup?
set_unicode_conversion /isn't/ the problem here, incidentally. It's
sitting at 683,776 bytes allocated internally; big, but well within
sensible limits.
The rest of the code looks fairly reasonable; the footprint problem is
mostly that the init code builds such a huge image and that the memory
allocated never gets handed back to the OS...
Daniel