阅读背景:

为什么数字数组,比对象数组更快的数据排序,Javascript中的数据更少?

来源:互联网 

For my application in node.js I must sort elements of an array in descending order based on some numeric value (i.e. a numeric rank). Since my application is performance-critical, I decided to build my data structure so that sorting is optimized. I hypothesized that the fewer data contained per element in my array, the faster the sorts will be. To test my hypothesis, I ran the following on three different arrays of length 10000:For my application in node.js I must sort eleme




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: