memory allocation
Posted: Wed Aug 03, 2005 11:26 pm
I got a list about 6000 complex elements into memory
and got 15M of memory allocated by newlisp.
then I transform "d" as follows:
Finally I got about 2000 transformed (and reduced) items in d,
but newlisp allocates 30M now!
All code and executing was done in separate context. I save this context to be sure, that no lost symbols are there.
As I can see, following subsequent caslls to mentioned (convert-db) does not cause newlisp size growing - so allocated space is reused properly.
But can newlisp dynamically reduce the size it allocated? And when?
Code: Select all
(set 'd (read-db "filename"))
then I transform "d" as follows:
Code: Select all
(set 'd (convert-db d))
but newlisp allocates 30M now!
All code and executing was done in separate context. I save this context to be sure, that no lost symbols are there.
As I can see, following subsequent caslls to mentioned (convert-db) does not cause newlisp size growing - so allocated space is reused properly.
But can newlisp dynamically reduce the size it allocated? And when?