flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Workers and Speed
Date Wed, 03 Aug 2016 04:42:03 GMT

On 8/2/16, 7:04 PM, "bilbosax" <waspence41@comcast.net> wrote:

>What about changing datatypes, does this eat up a lot of time?  My
>has some values that are typed as string but are actually numbers.  When I
>download them from the database, I assume that they are entered into the
>arraycollection as strings.  In my loops, I have to do math functions on
>them so I force them to a number type as such:
>var a:Number = Number(myArray[1].someProp)*10;
>When doing this a large number of times in big loops, will it eat up a
>significant amount of time or is type conversion pretty fast?

It would have shown up in the profiler if it was a big deal.  But again,
if you waste 10ms 100 times, you've wasted a full second.  Not that the
type conversion would take 10ms, just that if you have a lot of stuff, and
care about every second, even small stuff can make a difference.


View raw message