[m-rev.] For review: Convert Mercury terms to XML

Ian MacLarty maclarty at cs.mu.OZ.AU
Mon Dec 6 14:06:20 AEDT 2004


>
> I agree with Ralph here on general principles, but I would like to know
> what the efficiency hit for the C backend is if you take out the pragma
> memo.
Okay I'll take it out.

The performance hit for a list of ints is 2.7% (i.e. it takes 2.7% 
longer without memoing).  With a list of values of mytype (see below) 
it takes 27.2% longer.

:- type mytype
         --->    mytype_functor(another_type2, another_type3).

:- type another_type2
         --->    another_type2_functor(int).

:- type another_type3
         --->    another_type3_functor(int).

Ian.

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list