[mercury-users] Hints on Optimisation

Ralph Becket rbeck at microsoft.com
Fri Oct 8 23:58:34 AEST 1999


> One optimisation that I have been thinking about doing is the explicit
> expansion of single data constructor and multiple fields, into each of
> the individual fields, and then running unused argument elimination to
> get rid of the unecessary fields.  I assume this is what you want.

Yes, that's the sort of thing I had in mind.  The sorts of problem I'm
worried about are those where there's a lot of frequently manipulated
state.  I'd rather wrap it all up and let the compiler optimise away
than pass each field around as a separate argument - it's tiresome and
ugly.

Cheers,

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



More information about the users mailing list