April 11, 2005
I am trying to minimize the memory footprint of a.  What happens is the app starts up runs some D code.  This code sets up some structures that are then passed to the "real" app.  I would like to minimize the memory footprint that the D code occupies once the structures are built.  I am looking for comments on the technique I will describe here as well as alternative suggestions..

We have config.dll (the D code) and app.exe (any language let's say it is C). app.exe loads config.dll dynamically and passes it a block of memory.  The config.dll loads the necessary data into the block of memory then returns to app.exe.  App.exe then unloads the dll (does anything special need to be done to free all the memory the D garbage collector allocated?), then runs the real application passing in the structures.



regards,
Glen








April 12, 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

glen schrieb am Mon, 11 Apr 2005 19:27:01 +0000 (UTC):
>
> I am trying to minimize the memory footprint of a.  What happens is the app starts up runs some D code.  This code sets up some structures that are then passed to the "real" app.  I would like to minimize the memory footprint that the D code occupies once the structures are built.  I am looking for comments on the technique I will describe here as well as alternative suggestions..

candidates:
delete SomeObject;
std.gc.FullCollect();
std.gc.minimize();

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFCW+c63w+/yD4P9tIRAsl1AJkBDpcty5IJ9Z+JSkAZiTQ63h+oXgCdGtp3
tng7u0tcjA3cVSBPqbPK8UI=
=qf6h
-----END PGP SIGNATURE-----
Top | Discussion index | About this forum | D home