...

View Full Version : Worried about performance and size limitations



kalyson
06-16-2007, 08:21 PM
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

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

kalyson
06-19-2007, 07:37 PM
Thanks for the suggestion. I'll give that a try!

--K



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum