阅读背景:

Java性能—arraylist与数组进行大量快速读取

来源:互联网 

I have a program where I need to make 100,000 to 1,000,000 random-access reads to a List-like object in as little time as possible (as in milliseconds) for a cellular automata-like program. I think the update algorithm I'm using is already optimized (keeps track of active cells efficiently, etc). The Lists do need to change size, but that performance is not as important. So I am wondering if the performance from using Arrays instead of ArrayLists is enough to make a difference when dealing with that many reads in such short spans of time. Currently, I'm using ArrayLists.I have a program where I need to make 100,000 t




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

分享到: