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
AlbertoD
(AlbertoD)
January 30, 2025, 12:42pm
2
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:
You are right ! It works.
Now I have to compare the time spend to achieve the task.
For the record, the working line is:
Pos_Start = TA.Text.IndexOf(Pos_Actual, Tag_Start, ComparisonOptions.CaseInsensitive, locale_French)
When I had at the beginning:
Pos_Start = TA.Text.InStr(Pos_Actual, Tag_Start)
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…
AlbertoD
(AlbertoD)
January 30, 2025, 2:36pm
4
So 2 different code produce different speed results. Got it.
1 Like
Mike_D
(Mike D)
January 30, 2025, 3:14pm
5
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.
1 Like
A built application might do, but unless you try, you won’t know.
Mike_D
(Mike D)
January 30, 2025, 7:31pm
8
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