5390 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 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…

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 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.

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
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
2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 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.
4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
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 (:

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 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

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
bitfade says

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by