Bug 467527 - Improve performance of types' inference during compilation
Summary: Improve performance of types' inference during compilation
Status: ASSIGNED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: 3.4.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-18 13:08 EDT by Sergey Boyko CLA
Modified: 2015-05-19 05:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Boyko CLA 2015-05-18 13:08:35 EDT
Profiling shows that there are some time-consuming methods used for type inference which are called many times on the same input arguments. Implementing simple cache for these methods would improve the overall compilation performance.

Also methods which collect operations for the type hierarchy contain some redundant logic which results to many unneeded steps that also affects compilation performance.
Comment 1 Sergey Boyko CLA 2015-05-19 05:07:11 EDT
Pushed to 'master' for RC1.
Commit id: a5835134ef56d27e3f29fcbde1ee66180863abc3

Checked against some sets of .qvto transformations (provided by Christopher Gerking and taken from Papyrus sources). Compilation time reduced 3 to 5 times.