Results 1 to 3 of 3

Thread: How much memory do Arrays hog up???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    84

    I have an array:
    Dim MapTable(1 To 50, 1 To 12)

    I was reading that each array element can hold 64K characters, AND the memory is reserved in advanced

    I'm pretty sure this is wrong. but if I took
    64K x 50 x 12

    That would mean that array is hoggin 38Megs of RAM??????


    Thanks for info

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    not at all, if that array you are using is an array of variants each elemnt will take up 16 bytes, for any numeric value and 22 bytes + string length for strings. So in case you don't have variable contents of the items i suggest you use the datatype you prefer to have the items stored as.

    Also, an array requires 20 bytes + 4 bytes for each dimension + the amount of data each item require
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    84
    I'm running ME now (missing 2K) - so I downloading a memory tool and took a look at how much memory the application was taking up.........

    It didn't look that bad at all.

    Thanks,

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