javascript - access to elements of an array in js vs hashtable in c++ or c# performance? -


js uses hash table access elements of array. slower method of accessing array elements in c++ or c# languages?

var arr=[]; arr[0]=23; arr[1]=12; arr['2tr5']=54; 

is algorithm accesses elements of array in js same hashtable in c++ or c#? how can speed access elements directly , why doesn't js use dense array fast access elements.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -