Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Maximum number of items in a javascript array

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Server-Side Compatibility of SSL Certificates  
Author Message
growler8nospam

External


Since: Apr 13, 2004
Posts: 5



(Msg. 1) Posted: Mon May 10, 2004 4:51 pm
Post subject: Maximum number of items in a javascript array
Archived from groups: alt>www>webmaster (more info?)

Does anyone know what the maximum number of items (or characters) allowed
is, in a javascript array?

Luke

 >> Stay informed about: Maximum number of items in a javascript array 
Back to top
Login to vote
gotchy

External


Since: Apr 30, 2004
Posts: 33



(Msg. 2) Posted: Tue May 11, 2004 2:25 am
Post subject: Re: Maximum number of items in a javascript array [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Luke" <growler8NOSPAM.DeleteThis@hotmail.com> wrote in
 > Does anyone know what the maximum number of items (or characters) allowed
 > is, in a javascript array?
 >

nope, but I've used up to about 50,000 elements with no problem.

Herc<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Maximum number of items in a javascript array 
Back to top
Login to vote
user274

External


Since: Oct 23, 2003
Posts: 226



(Msg. 3) Posted: Tue May 11, 2004 2:25 am
Post subject: Re: Maximum number of items in a javascript array [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"|-|erc" <gotchy.RemoveThis@beauty.com> wrote in message
news:UbUnc.31403$TT.27033@news-server.bigpond.net.au...
 > "Luke" <growler8NOSPAM.RemoveThis@hotmail.com> wrote in
  > > Does anyone know what the maximum number of items (or characters)
allowed
  > > is, in a javascript array?
  > >
 >
 > nope, but I've used up to about 50,000 elements with no problem.

Isn't all javascript elements stored and executed on the users computer?

Just thinking that if you had that much stuff (using their RAM) and the web
page was accessing it (using their CPU)... then wouldn't that have the
potential to run extremely slow on somebody's computer if it was a
slower/older model?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Maximum number of items in a javascript array 
Back to top
Login to vote
gotchy

External


Since: Apr 30, 2004
Posts: 33



(Msg. 4) Posted: Tue May 11, 2004 8:07 am
Post subject: Re: Maximum number of items in a javascript array [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Augustus" <Imperial.Palace DeleteThis @Rome.com> wrote in
 > "|-|erc" <gotchy DeleteThis @beauty.com> wrote in message
  > > "Luke" <growler8NOSPAM DeleteThis @hotmail.com> wrote in
   > > > Does anyone know what the maximum number of items (or characters)
 > allowed
   > > > is, in a javascript array?
   > > >
  > >
  > > nope, but I've used up to about 50,000 elements with no problem.
 >
 > Isn't all javascript elements stored and executed on the users computer?

yes

 >
 > Just thinking that if you had that much stuff (using their RAM) and the web
 > page was accessing it (using their CPU)... then wouldn't that have the
 > potential to run extremely slow on somebody's computer if it was a
 > slower/older model?
 >

yes, try <a style='text-decoration: underline;' href="http://www.c-h-e-s-s.com" target="_blank">www.c-h-e-s-s.com</a> its the program in question, searches about 20,000
board positions. IE will timeout after 10 seconds so about every 3 seconds
it finishes the script then returns 1/10 second later on a timer, takes about
4 or 5 runs to make a move you can see the lightbulb flashing every time, that's
actually to get around the 10 second timeout.

Try selecting a menu option while its calculating.

IE will continue running if you select continue, but times out again at about 1 minute
and 10 minutes. IE must allocate some memory, the chess program is using
about 5 of these arrays.

But that's a processor intensive application playing chess, large arrays don't tax
the CPU generally. Its only about 100kb RAM, IE probably has 1MB or somewhere
around there allocated for javascript variables.

Herc<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Maximum number of items in a javascript array 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
I wish to sell items on my site - I have now made *most* of the changes recommended on this new group, but would now like to set up an online store for selling items. We currently use SECPAY for taking donations and selling the odd item and although their charge is minimal we have had..

Question for Canadian webmasters who sell items online - What taxes do you legally have to charge? Just GST, or your provincial sales tax? How can you charge say Ontario PST to a person in Alberta? What shipping system do you use? Canada Post, UPS, Fed Ex, etc? -- Bob http://www.canadianisp.com - Compare...

Some Javascripts - Anyone know where I can download javascript for free that will act like the tools used in forum scripts. Like to insert a link, to make something bold, and so on? -- Sharif T. Karim ....you expected some spam here?...

Javascript help! - I've got the following script. <script language="javascript"> function pop_window(url) { var popit = window.open(url,'console','menubar,toolbar,location,directories,status,scrol lbars,resizable,width=584,height=636'); } I call it t...

Javascript Question - Would someone have a snippet of code that would allow me to do the same thing seen on http://www.overstock.com/cgi-bin/d2.cgi?PAGE=PROFRAME&PROD_ID=666398 On this page, is a main picture, below it is 3 more. If you place your mouse over one of the....
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]