Re: copy_term is slow

Alan Baljeu <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Just discovered copy_term_nat/2.  My program is now 30% faster.
 
From: Alan Baljeu <[email protected]>
To: Prolog <[email protected]> 
Sent: Friday, January 3, 2014 2:28:44 PM
Subject: [SWIPL] copy_term is slow
 

I observe that copying 100 terms costs .35s execution time which is 30% 
of the total of a rather large program.  The terms being copied look like this:

eqcon(poly([-1*A,1*B],0))-[item(324)=A,item(377)=B]


Based on documenation, I suspect A and B are attributed variables, but in 
this case I don't want the attributes copied.  What can I do?
 
Alan Baljeu
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.