問題文
The reviewer is comparing a process that fetches the broker rate table once before the loop with one that fetches it inside the loop for every item. Three hundred items are handled. Which is better and what does the other one throw away?
選択肢
- The better one fetches it before the middle portion, and what the other one performs three hundred times over is the wasteful retrieval that this application only needed once.
- The better one fetches it before the looping portion, and what the other one performs three hundred times over is the wasteful retrieval that this application only needed once.
- The better one fetches it before the looping portion, and what the other one performs three hundred times over is the small retrieval that this application only needed once.
- The better one fetches it before the middle portion, and what the other one performs three hundred times over is the small retrieval that this application only needed once.