title: Typed array for storing objects in javascript
body: <p>I have been using typed arrays like <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays/Int32Array" rel="nofollow">Int32Array</a> in javascript. I want to implement a circular queue using javascript and don't want to compromise on performance.</p>
  
  <p>The problem is that the queue items are of Javascript  <code>Object</code> type and so I can't save them in the simple <code>Array</code> object. Thus I need a Typed Array which can perform really well with JS <code>Object</code> type objects.</p>
  
  <p>Regards.</p>
  
  <p><strong>Update:</strong>
  From the comments it seems like people are not clear about the performance benefits of having a typed array so I created this js perf test to make is more apparent</p>
  
  <p><a href="http://jsperf.com/typed-array-vs-normal-array" rel="nofollow">http://jsperf.com/typed-array-vs-normal-array</a></p>