How to efficiently (performance) remove many items from List in Java?
OK, it’s time for test results of proposed approaches. Here what approaches I have tested (name of each approach is also class name in my sources): NaiveRemoveManyPerformer – ArrayList with iterator and remove – first and naive implementation given in my question. BetterNaiveRemoveManyPerformer – ArrayList with backward iteration and removal from end to front. LinkedRemoveManyPerformer … Read more