Efficient loop through Java List

前端 未结 6 1018
花落未央
花落未央 2021-02-07 09:51

The following list is from the google I/O talk in 2008 called \"Dalvik Virtual Machine Internals\" its a list of ways to loop over a set of objects in order from most to least e

6条回答
  •  故里飘歌
    2021-02-07 10:29

    I guess you have to marshall the objects into a "linked list" based Iterator, and then support an API, as opposed to a chunk of memory and a pointer (array)

提交回复
热议问题