5 ms·Using stream can be faster here. Because you don't have to rebuild the same huge list again and again.by Kabie 4y agoUsing stream can be faster here. Because you don't have to rebuild the same huge list again and again.