Performance issue: Iteration for add a elemente in a second list
Closed this issue · 2 comments
malaquiasdev commented
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);
malaquiasdev commented
solved #64
malaquiasdev commented
Merged #69