Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Worried about performance and size limitations

    Hello, there,

    I'm trying to figure out the number of bytes that would be stored on the client if I fill an array with around 10,000 objects. I figured 2 bytes per character for the data characters in the array since it is unicode, but I'm not sure how many bytes the numbers would take. The objects in the array would look like this:


    object1.property1 = 1003; //max 5 digits
    object1.property2 = 123.2224;
    object1.property3 = 323.8981;
    object1.property4 = "object name"; //max 25-30 chars

    Does it seem that this array would be too big and overwhelm the memory on the average user's machine?


    Thanks!
    Kris

  • #2
    New Coder
    Join Date
    Dec 2006
    Location
    GB
    Posts
    79
    Thanks
    3
    Thanked 1 Time in 1 Post
    Why do you want an array of 10,000 objects?

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Must say, having read the thread title, I was half expecting it to be someone spamming about dodgy pharmaceuticals.

  • #4
    New Coder
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Heh, heh. Yes, I see the point about the pharmaceuticals.

    To answer the question about why -- I have to show that many points as clickable objects on a layer above a map.

    --K

  • #5
    TNO
    TNO is offline
    Regular Coder
    Join Date
    Apr 2005
    Posts
    213
    Thanks
    2
    Thanked 1 Time in 1 Post
    I don't see this as much of an issue if you preload the script before the page renders. But to handle that many clickable points on a layer, I suggest instead of capturing the mouse location on screen, and then evaluating that against an array/case statement

  • #6
    New Coder
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the suggestion. I'll give that a try!

    --K


  •  

    Posting Permissions

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