[ 
https://issues.apache.org/jira/browse/FLEX-33853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810260#comment-13810260
 ] 

Benoit Wiart commented on FLEX-33853:
-------------------------------------

With something like :
                                for (var i:Number = 0; i < nr; i++)
                                {
                                        result = UIDUtil.createUID();
                                        result2 = 
UIDUtil.fromByteArray(UIDUtil.toByteArray(result));
                                }
with nr = 10000
before 130ms (average)
after 90ms (average)
time taken without any profiler

please see the attached file for the memory allocation (this time under scout)


> Optimize uidutil / rpcuidutil fromByteArray method
> --------------------------------------------------
>
>                 Key: FLEX-33853
>                 URL: https://issues.apache.org/jira/browse/FLEX-33853
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: mx: General, RPC: General
>    Affects Versions: Apache Flex 4.11.0
>         Environment: all
>            Reporter: Benoit Wiart
>            Assignee: Maurice Amsellem
>              Labels: performance
>         Attachments: 0001-optimize-fromByteArray.patch
>
>
> Apply the algorithm introduced in commit 
> 40d67742ec94bc916096f078a8738b4697c621bb to the fromByteArray method



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to