Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3833

Memoryblocks are slower starting with 2024r3

$
0
0

Try it for yourself and see the results. If your apps are doing anything substantial with memoryblocks, you’ll notice significantly slower performance starting with 2024r3.

dim s, e, t as double
s = System.Microseconds
dim z() as memoryblock
dim j, k as integer
for j = 0 to 1000000
  dim m as new MemoryBlock(8)
  for k = 0 to 7
    m.byte(k) = j mod pow(2,k)
  next
  z.append m
next
e = System.Microseconds
t = e - s
dim r as string = format( t, "0.0000" )
dim clip as new Clipboard
clip.SetText r
MsgBox r
quit
// Mac Studio M1 results running in the IDE:
//2024r2 1311051,0000
//2024r3 1868024,4583

Note: speed of 2024r3.1 is the same as r3

22 posts - 9 participants

Read full topic


Viewing all articles
Browse latest Browse all 3833

Trending Articles