How much data (As in size) can be stored in a Javascript array? All of my data are float values. I am trying to cache all of the data that server sent to web app client in array first and then read it from that array every second to render it in plot. This way I will render multiple points at a time and won't have to rend a point every time new data point arrives (which is actually every 20ms)
Please suggest.
How much data (As in size) can be stored in a Javascript array? All of my data are float values. I am trying to cache all of the data that server sent to web app client in array first and then read it from that array every second to render it in plot. This way I will render multiple points at a time and won't have to rend a point every time new data point arrives (which is actually every 20ms)
Please suggest.
Share Improve this question edited Oct 7, 2012 at 5:32 Mils 1,5083 gold badges19 silver badges44 bronze badges asked Oct 7, 2012 at 5:23 Andy897Andy897 7,13312 gold badges56 silver badges92 bronze badges 2- Did you see this:: stackoverflow./questions/6154989/… – Sudhir Bastakoti Commented Oct 7, 2012 at 5:24
- 2 When you never accept answers, it limits the number of people that will even bother writing an answer. Why help someone out if they won't even acknowledge it? – Rhyono Commented Oct 7, 2012 at 5:28
2 Answers
Reset to default 5The exact maximum limit of an array is 2^32 - 1 or 4294967295, due to restrictions in Javascript's memory. The number of items, also known as the length property, cannot be greater than that. Check this: http://4umi./web/javascript/array.php for more details.
as the size of integer data type, because length property is of integer data type, it cannot be greater than that. i.e.2^32