flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-33878) Matrix computations : avoid unneeded flash.geom.Transform and flash.geom.Matrix allocations
Date Tue, 05 Nov 2013 11:29:18 GMT

    [ 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)

Mime
View raw message