[m-dev.] lcmc for high-level data
Zoltan Somogyi
zs at csse.unimelb.edu.au
Tue Sep 8 12:33:20 AEST 2009
On 07-Sep-2009, Peter Wang <novalazy at gmail.com> wrote:
> How difficult would it be to change the transformation so that instead
> of passing the address of a field, pass the address of the entire cell,
> and rely on the variant procedure to know which field needs to be
> assigned?
It would mean that instead of one specialized variant per set of outputs
returned in memory, you would need one specialized variant per the cross
product of the set of outputs AND the identity of the structures and fields
in which they are to be returned. This would probably make exporting the
specialized versions to other modules unfeasibly difficult. It would also
lower cache effectiveness.
Beyond that, I don't know.
> [1] That could possibly be emulated using the Java reflection API, but
> that would probably be slow.
Agreed. The overhead would probably be sufficient rob the optimization
of its raison d'etre.
Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions: mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the developers
mailing list