[mercury-users] Field assignment optimisation

Michael Day mikeday at yeslogic.com
Mon May 9 17:26:59 AEST 2005

Hi Ralph,

> Can you send us your test program?  What optimization level are you
> using?  These intermediate structures certainly *should* be optimized
> away.

I'm only guessing at what is going on, but based on timing and mprof
output replacing the multiple field assignments with a single construction
gives quite a significant speedup.

The structure in question has 87 fields and there were 12 field

The compilation grade is asm_fast.gc (and asm_fast.gc.prof) and the
compilation options include -O5 --intermodule-optimisation

Providing the entire program is not possible in this case however, as it
is rather large.

Best regards,


YesLogic Prince prints XML!
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