You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Maurice Amsellem (JIRA)" <ji...@apache.org> on 2013/11/05 12:29:18 UTC
[jira] [Comment Edited] (FLEX-33878) Matrix computations : avoid
unneeded flash.geom.Transform and flash.geom.Matrix allocations
[ https://issues.apache.org/jira/browse/FLEX-33878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813860#comment-13813860 ]
Maurice Amsellem edited comment on FLEX-33878 at 11/5/13 11:28 AM:
-------------------------------------------------------------------
Committed and pushed to devleop:
Commit: 0b6fa00f277024616fbfd638ee2ebc656a8363f5 [0b6fa00]
Parents: 1277b09704
Note: I have slightly modified the test in MatrixUtil to make it more understandable.
{code}
var displayObjectMatrix:Matrix = displayObject ? displayObject.transform.matrix : null ;
var notTopAndHasMatrix:Boolean = displayObjectMatrix!=null && displayObject != topParent;
while (notTopAndHasMatrix)
...
{code}
was (Author: mamsellem):
Committed and pushed to devleop:
Commit: 0b6fa00f277024616fbfd638ee2ebc656a8363f5 [0b6fa00]
Parents: 1277b09704
Note: I have slightly modified the test in MatrixUtil to make it more understandable.
> Matrix computations : avoid unneeded flash.geom.Transform and flash.geom.Matrix allocations
> -------------------------------------------------------------------------------------------
>
> Key: FLEX-33878
> URL: https://issues.apache.org/jira/browse/FLEX-33878
> Project: Apache Flex
> Issue Type: Improvement
> Affects Versions: Apache Flex 4.11.0
> Environment: All
> Reporter: Benoit Wiart
> Labels: easyfix, memory
> Fix For: Apache Flex 4.12.0
>
> Attachments: 0001-avoid-unneeded-flash.geom.Transform-and-flash.geom.M.patch, matrix-1-mobile-memory.png
>
>
> Each time you call Transform#matrix a new transform is allocated
> Each time you call DisplatObject#transform a new matrix is allocated
> Store Matrix in a local variable to avoid multiple allocations
--
This message was sent by Atlassian JIRA
(v6.1#6144)