A Flash Developer Resource Site

Results 1 to 20 of 23

Thread: Flat Array vs Multidimensional Array

Hybrid View

  1. #1
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324
    Hmm

    Those results are a bit weird cos from that test it looks like the multidimensional array is faster. I think this is because it takes time for Flash to evaluate map2[0*w+j] for the flat array.

    Also, I downloaded your Flash 9 source (which is AS2 by the way) and modified it for AS3 and it still looks like the multidimensional array was faster.

    Even more argument to use multidimensional then...
    Attached Files Attached Files

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Quote Originally Posted by Cortana
    Also, I downloaded your Flash 9 source (which is AS2 by the way) and modified it for AS3 and it still looks like the multidimensional array was faster.
    Yes, in AS3 accessing multidimensional array is much faster then flat array with width.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center