Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] ArrayList vs Vector

Hi all,

There is a series of commits that are replacing Vector with ArrayList with the reasoning "Vector is an outdated data structure and ArrayList should be preferred
as it is faster".

Please note, that Vector is synchronized and ArrayList not, so this is not 1:1 "no-op" exchange!

As javadoc in Vector says, one could replace it with ArrayList, but only "If a thread-safe implementation is not needed".

So whoever is going to review & merge this, please make sure you have understood the implication of the change on internal & external behavior of the changed code.

https://git.eclipse.org/r/156169
https://git.eclipse.org/r/156179
https://git.eclipse.org/r/156172
https://git.eclipse.org/r/156170
https://git.eclipse.org/r/156166
https://git.eclipse.org/r/156167
https://git.eclipse.org/r/156168
https://git.eclipse.org/r/156171

Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov



Back to the top