Not sure how to answer your question. You seem to want us to write a test program that you could easily write yourself. So instead, I just point this out:
- When using
list each item you click will take up memory allocation. - With
deque , large blocks are immediately highlighted.
Given that memory allocation is usually slow, I expect deque exit the list.
If you click or click multiple items at once, this will be especially true since the cache is included in the game.
Of course, you can write a allocator in the list to use the memory pool. Then you can get better performance.
So, given these hypotheses, go away and measure it, and if you want to discuss the results, it's time to ask a question.
source share