[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mdt-ocl.dev] Benchmark results OCL/Ecore Plugin Tests
|
Hi Axel
I feel that you're flogging the wrong horse.
>
> 1) We can try to accelerate execution by using switch(...) based on
> Ecore feature IDs instead of polymorphic visitor dispatching
> and see how
> much that gains.
The pivot evaluator apart from dynamic dispatch does direct dispatch via
OperationCallExp to the OperationCallExp.referredOperation
to Operation.implementation which is a Java class; no visits, no switches.
The Pivot variant of LoopExp has an equivalent referredIteration so no
need to string match a set of reserved iterator names.
>
> 2) We can try to improve specific bottlenecks such as the
> tuple hash
> code computation (easily solvable by caching the constant
> tuple's hash
> code once computed), as well as the tuple creation process
> which seems
> to spend more time than seems appropriate for cloningi an
> IntegerRange
> which, as an immutable object itself, could just be
> referenced instead
> of copied in this case.
Already cached in the Pivot variant; it gave me a lot of debugging trouble
because Tuple hashes were not repeatable for compatible types such as 4 and
4.0.
Regards
Ed
Please consider the environment before printing a hard copy of this
e-mail.
The information contained in this e-mail is confidential. It is intended
only for the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. If you have received
this e-mail in error, please inform us immediately on +44 (0)118 986 8601
and delete it and all copies from your system.
Thales Research and Technology (UK) Limited. A company registered in
England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne
Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number:
774298
Thales UK Limited. A company registered in England and Wales. Registered
Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone,
Weybridge, Surrey KT15 2NX. Registered Number: 868273