Since the event used as a display update notification always contains the same data, only one instance needs to be created. Instead of creating a new instance inside the loop, an instance is created before entering the loop, and that instance is then reused inside the loop.
Since the event used as a display update notification always contains the same data, only one instance needs to be created. Instead of creating a new instance inside the loop, an instance is created before entering the loop, and that instance is then reused inside the loop.