[m-rev.] diff: --optimize-constructor-last-call for list.m and tree234.m

Peter Ross pro at missioncriticalit.com
Mon Oct 30 15:42:07 AEDT 2006


On 10/30/06, Zoltan Somogyi <zs at csse.unimelb.edu.au> wrote:
> library/Mercury.options:
>         Turn on --optimize-constructor-last-call for list.m and tree234.m.
>
>         In the following, version 1 is with the original parameters, version 2
>         is with --optimize-constructor-last-call for list.m only, version 3
>         is with --optimize-constructor-last-call for both modules.
>
>         mercury_compile.01 average of 12 with ignore=1     20.44
>         mercury_compile.02 average of 12 with ignore=1     19.99
>         mercury_compile.03 average of 12 with ignore=1     19.83
>
In my opinion all library modules should be compiled with
--optimize-constructor-last-call
as running slower is preferable to running out of stack.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list