User Tag List

Results 1 to 8 of 8

Thread: Array Bug ?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    London - UK
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Array Bug ?

    Not sure if its a bug, or just a design flaw on my part.. But I've made an array of about 1000x1000x23. When I save this array, it exceeds 80MB. Is this normal?? I would have thought it would be a lot smaller! Since even a text file with 1000's of characters would only be a few Kilobytes! Have I misunderstood this or is this really a bug?

    -Mel

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    London - UK
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Array Bug ?

    Not sure if its a bug, or just a design flaw on my part.. But I've made an array of about 1000x1000x23. When I save this array, it exceeds 80MB. Is this normal?? I would have thought it would be a lot smaller! Since even a text file with 1000's of characters would only be a few Kilobytes! Have I misunderstood this or is this really a bug?

    -Mel

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Bug ?

    For me, an empty array of text is 3.81MB.

    10x10 is 1kb
    100x100 is 40kb
    1000x1000 is 3810kb

    However, creating an array of 10,000x10,000 creates the message:


    ---------------------------
    Error
    ---------------------------
    This array would comsume more than 256 Gb of memory!
    ---------------------------
    OK
    ---------------------------


    Edit: sorry, didn't see the third dimension on your post :$
    Edit 2: On a more comical note, they spelt "consume" wrong in the error message.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Bug ?

    For me, an empty array of text is 3.81MB.

    10x10 is 1kb
    100x100 is 40kb
    1000x1000 is 3810kb

    However, creating an array of 10,000x10,000 creates the message:


    ---------------------------
    Error
    ---------------------------
    This array would comsume more than 256 Gb of memory!
    ---------------------------
    OK
    ---------------------------


    Edit: sorry, didn't see the third dimension on your post :$
    Edit 2: On a more comical note, they spelt "consume" wrong in the error message.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Array Bug ?

    1000x1000x23=23000000. If a number were 4 bytes then it'd be 23000000*4 which is 92000000 bytes or 87.738037109375 megabytes.
    .:::.Joshtek.:::.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Array Bug ?

    1000x1000x23=23000000. If a number were 4 bytes then it'd be 23000000*4 which is 92000000 bytes or 87.738037109375 megabytes.
    .:::.Joshtek.:::.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    London - UK
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Bug ?

    aaahhh.. Then it looks like it is my bad.. lol I've found several ways of optimizing it, just didn't realize it would be so huge! -already got it down to 1.75MB! LOL

    Thanks guys!

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Location
    London - UK
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Bug ?

    aaahhh.. Then it looks like it is my bad.. lol I've found several ways of optimizing it, just didn't realize it would be so huge! -already got it down to 1.75MB! LOL

    Thanks guys!

Similar Threads

  1. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  2. Array... help!
    By Aasland in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 12th April 2012, 01:14 AM
  3. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  4. Array help
    By Zabooza in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st April 2009, 03:02 AM
  5. [Request] Array of array - possible for $$$
    By Blizna in forum Extension Development
    Replies: 9
    Last Post: 29th December 2007, 11:13 PM

Posting Permissions

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