Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit to number of Objects?

Status
Not open for further replies.

mjpearson

Technical User
Dec 13, 2002
196
US
I'm rather new to JS.

I have a small program that builds a table of information. The table is built using JS. I have close to 100+ numerical items (INTEGERS) that need to go through a math equation before they get displayed in the table (REAL). I'm thinking about rebuilding the whole JS application. Right now, I stuff the INTEGERS into arrays and then perform math on each value in the array. I'm wondering if it makes more sense to build an OBJECT for each item? Is there a practical limit to the number of objects that can be instantiated?


mike
 
If you're only talking hundreds, then that should be no problem. When you start to output tens of thousands of elements to a page, you might see some slowdown in some browsers, depending on how you've structured your markup, etc.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks Dan,

I'll give it a try. I've always read that OOP can be very memory intensive and then making the browser do the work during download would make it semi-inefficient. Good to hear that it'll support numbers in the 100s without too much problem.

thanks,


mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top