最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Limit data (size) can be stored in a javascript array. - Stack Overflow

programmeradmin0浏览0评论

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
Add a ment  | 

2 Answers 2

Reset to default 5

The 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

发布评论

评论列表(0)

  1. 暂无评论