0 Replies Latest reply on Dec 14, 2009 4:24 PM by Evtim Georgiev (Adobe)

    [svn:fx-trunk] 12930: Optimize transformSize and transformBounds, reduce allocation of Point objects.

    Evtim Georgiev (Adobe) Level 2

      Revision: 12930

      Revision: 12930

      Author:   egeorgie@adobe.com

      Date:     2009-12-14 16:23:58 -0800 (Mon, 14 Dec 2009)

      Log Message:

      ***********

      Optimize transformSize and transformBounds, reduce allocation of Point objects.

       

      This change addresses a couple of FIXMEs I had put in the internal MatrixUtil class. The parameters were changed to numbers instead of points and I unrolled the matrix multiplication to significantly reduce the number of multiplications and additions. Both methods now return reference to the same internal static Point object to further reduce dynamic object allocation.

       

      QE notes: None

      Doc notes: None

      Bugs: None

      Reviewer: Deepa

      Tests run: checkintests, mustella tests/gumbo/layout

      Is noteworthy for integration: Yes

       

      Modified Paths:

      **************

          flex/sdk/trunk/development/eclipse/flex/sparkTest/src/layouts/WheelLayout.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayo ut.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as