Hello,
after upgrading from Sierra to Mojave I noticed that an app of mine, created in Sierra, now takes about 10 secs before its opening process comes to an end.
The cause of this delay is that at opening time the app loads several popupmenus, each with about 300 rows.
So I created a new project with twelve popupmenus and the code below in a push button:
to load 300 rows, it takes about 210 ticks.
My MBP has got only 8G of memory, but in Sierra the delay was not as marked as now.
Using Xojo 2018r4, aggressive
Is there a way to speed up the process?
Sub Action() Handles Action #pragma disableBackgroundTasks #pragma disableBoundsChecking dim tt as Double = Ticks dim s as String = "wisdom" for i as Integer = 0 to 300 for k as Integer = 0 to 11 PopupMenu1(k).AddRow s //dim n as Integer = PopupMenu1(k).ListCount-1 //PopupMenu1(k).RowTag(n) = "some value" next next for i as Integer = 0 to 11 PopupMenu1(i).ListIndex = 0 next label1.text = Format(Ticks-tt, "#") End Sub