5278 posts The Dude Abides
  • United States
  • Exclusive Author
  • Has been a member for 5-6 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
+5 more
CodingJack says

point is, any basic compiler would optimize example2 into example1 coz fixed values are always faster then variables

This is why I don’t quite understand it either. For a variable, dooesn’t Flash have to look up what the value is? Whereas for a value itself, there’s nothing to look up…

1991 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says
This is why I don’t quite understand it either. For a variable, dooesn’t Flash have to look up what the value is? Whereas for a value itself, there’s nothing to look up…
yes, that exactly how it should works
my guess is, since using different values the thing works as expected, maybe 0xFFFFFFFF is converted to number instead of uint
Then the opposite number to uint conversion is done tons of times in the inner loop causing the slowdown.

4136 posts
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says
i’m having hard time trying to undestand what are you talking’ ....
buongiorno Bit`
If you didn’t get me on my 1&2 post you wont get me at me at 3&4&5 and so on …… :P
1991 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says
buongiorno Bit`
If you didn’t get me on my 1&2 post you wont get me at me at 3&4&5 and so on …… :P
grazie, anche a te Tsafi
i’m sorry if it sounded rude, it was not meant to
but english is not my language, half ot the times i don’t even undestand what i’m talking about.
4136 posts
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says
buongiorno Bit`
If you didn’t get me on my 1&2 post you wont get me at me at 3&4&5 and so on …… :P
grazie, anche a te Tsafi
i’m sorry if it sounded rude, it was not meant to
but english is not my language, half ot the times i don’t even undestand what i’m talking about.

+1 :D

non ti preoccupare il suo ok :P
vorrei che il mio italiano è stato leggermente migliore il mio inglese, portoghese, ebraico e così via (:

1991 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says

now, this is quite interesting (well, at least for me)

just run some benchs about read/write memory performances comparing Vectors and flash fast memory opcodes (values are cpu usage)

Vector    40%
FastMem   13%
what a massive speed up

the test involved making 4 read and 4 write on 590×300 Vector/ByteArray, then data was loaded into a BitmapData

1991 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says

@wickedpixel
i didn’t tested Arrays coz they are ways slower then Vectors

by
by
by
by
by
by