I have following two types of codes. I just want to know which approach will give me better performance ?
Code 1 :
listModel.getStockList().forEach