Yorubaname/yorubaname-website

Performance issue: Iteration for add a elemente in a second list

Closed this issue · 2 comments

Hi,

 allNameEntries.forEach(nameEntry -> {
            names.add(nameEntry);
 });

With this code we are using a loop just for add a new element in another list, soon it's better change that for a line more simple to reading and less memory cust.

names.addAll(allNameEntries);

solved #64

Merged #69