MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #28636 All Revisions ] Back to Issue ]
Summary 0028636: Optimisation of gp_* classes in order to avoid unnecesary calling gp_Dir* constructors with normalisation
Revision 2017-04-10 10:06 by msv
Description Many constructors of gp_* classes contains fields as

gp_Dir v


and v is initialized by the value (1, 0). While such initialization, copy-constructor is used, which computes expression such as

sqrt(1*1+0*0)


and spent much time.

The main idea of optimization is to avoid using constructors with normalization for trivial cases.

P.S.

This problem has been observed while fixing performance degradation in the issue #28211. Though this was very little hot spot (about 1-3%) it was decided to correct such obvious issue.
Revision 2017-04-06 11:20 by nbv
Description Many constructors of gp_* classes contains fields as

gp_Dir v


and v is initialized by the value (1, 0). While such initialization, copy-constructor is used, which computes expression such as

sqrt(1*1+0*0)


and spent much time.

The main idea of optimization is to avoid using copy-constructor(s) for trivial cases.

P.S.

This problem has been observed while fixing performance degradation in the issue #28211.
Revision 2017-04-06 11:19 by nbv
Description Many constructors of gp_* classes contains fields as

gp_Dir v


and v is initialized by the value (1, 0). While such initialization, copy-constructor is used, which computes expression such as

sqrt(1*1+0*0)


and spent much time.

The main idea of optimization is to avoid using cop-constructor(s) for trivial cases.

P.S.

This problem has been observed while fixing performance degradation in the issue #28211.


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker