Execution speed (2021r2.1 vs 2024r4.2)

The real difference lies in IndexOf: 2024r4.2 needs additional parameters vs 2021r2.1.

2024r4.2: 12387 Ticks
2021r2.1: 1958 Ticks

482 folders were processed, then analyzed, and the result saved in an html file. These are stored in an external SSD.

That is running in the IDE; Desktop application.
The project is 94 ko. ARM.

1 Like

The same code in both? or some change like InStr vs IndexOf and using the comparison as case insensitive with a locale?

Got the info from one of your posts:

I wrote it in my head / forgot to backup it here.

Same project, but InStr in 2021r2.1 and IndexOf in 2024r4.2.

And talking about the other post: IndexOf exists in 2021r2.1, but with less parameters…

So 2 different code produce different speed results. Got it.

1 Like

You can’t benchmark in the IDE and get results that make sense. Test only in built apps.

2 Likes

So, build application will not have so much difference in execution time ?

Send licenses in MP, please. :wink:

1 Like

A built application might do, but unless you try, you won’t know.

In older versions the relation between Debug run and Build speed run seemed more consistent.

Xojo 2024 versions support preemptive threading and added a bunch of speedup, but in my experience this has made the IDE run slower than before, whereas the compiled app can be much much faster.

1 Like