A possible bug I found when playing with the demo project attached to https://forum.xojo.com/t/if-and-if-then-speed-differences/66954/63: Can someone confirm?
– Add a few shorter iterations to to PopupMenu1.Open, like
Me.AddRow("10,000")
Me.RowTagAt(Me.LastAddedRowIndex) = 10000
Me.AddRow("100,000")
Me.RowTagAt(Me.LastAddedRowIndex) = 100000
Me.AddRow("One Million")
Me.RowTagAt(Me.LastAddedRowIndex) = 1000000
Then run the project with one of these low counts – works for me the same in debugger as in a build.
You will find that the traditional text is updated but the result of the ternary test stays hidden and the progress wheel keeps on spinning. I have the feeling that the thread completes before firing its ternary UIUpdate when the total run time has been relatively short. A breakpoint in the ternary test method reveals the respective line was run.
Found so on Xojo2021r3, macOS Big Sur and Windows 10.