[m-dev.] for review: use type_ctor_rep for unify, index and compare

Warwick Harvey wharvey at cs.monash.edu.au
Thu Sep 30 17:56:50 AEST 1999


Zoltan wrote:
> Change the way unify, index and compare work. Instead of always calling the
> type-specific unification, index and comparison procedures, do a dispatch
> on the type_ctor_rep instead, and call the type-specific routine only
> if necessary. Also, specialize the common cases of type_ctors of arity
> 0, 1 and 2. This gives us a speedup of about 3 or 4 percent.

This change looks fine to me (once I figured out it wasn't doing what I 
thought it was supposed to ;-).

May I enquire on which machine you ran the benchmarks?

Warwick

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list