Dear Raphael, Thank you very much for your informative reply.
On 07.03.2006, at 09:29, Raphael Collet wrote:
if you put your constrained variables in hairy data structures, those data will be copied. One way to avoid this is to define a function that extracts the variables from the data structure, and returns them in a list or a record. Make the elements of the CSP refer to that one only.
So, I understand that in principle it is possible to reformulate a CSP in such a way that only the variables are copied and the bulk of already determined data (on which nevertheless the CSP relies) is kept in the top-level space without copying.
I will certainly come back to this issue in a few weeks ... (after thesis submission :-P ) For now it is just encouraging to know that I could somehow reduce the excessive memory use of my application.
Regarding the profiling question, it's a bit hard to make a diagnosis without looking at the patient... And I don't have my crystal ball in the office right now ;-)
Certainly ;-) I did not have an example independent of my application, so I was rather vague...
Best, Torsten -- Torsten Anders Sonic Arts Research Centre Queen's University Belfast (UK) www.torsten-anders.de _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
