delphi - How Can I Minimize Overhead when Processing Messages in a Long Loop - There are some long, but simple edges in my Delphi program, which can loop millions of times and execute a few seconds.