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:

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

Thanks!
Kris

Jacka

06-17-2007, 04:23 PM

Why do you want an array of 10,000 objects?

Bill Posters

06-17-2007, 05:38 PM

Must say, having read the thread title, I was half expecting it to be someone spamming about dodgy pharmaceuticals. ;)

kalyson

06-19-2007, 12:59 AM

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

TNO

06-19-2007, 05:43 AM

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