ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 64bit performance vs 32bit
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

petripiirainen

Finland
9 Posts

Posted - Jan 12 2023 :  05:22:05  Show Profile  Reply
Have you noticed that 64bit Delphi applications (Delphi 11) are running slower than 32bit versions. It seems that if there is a lot of calculations (like blending modes etc) 64 bit applications are running 5-10% slower than 32bit version.

Here is a sample command line application with Imageen v11.4.5 and running time results (antivirus disabled)


ImageEnView1 := TImageEnView.Create(nil);
ImageEnView1.IO.LoadFromFile('E:\Testing\performance\out.bmp');
imageenview1.LayersAdd(ielkimage,0,0);
imageenview1.LayersAdd(ielkimage,0,0);
imageenview1.Layers[1].Assign(imageenview1.Layers[0]);
imageenview1.Layers[2].Assign(imageenview1.Layers[0]);
imageenview1.LayersCurrent := 2;
imageenview1.Proc.Negative;
imageenview1.Layers[1].Operation := ielOverlay;
imageenview1.LayersMergeAll();
ImageEnView1.IO.savetofile('E:\Testing\performance\out2.bmp');


Results:

PowerShell measure-command:

1000x668 pixels pixels BMP image (out.bmp)

32bit
TotalMilliseconds : 61.3192

64bit
TotalMilliseconds : 65.6645

6246x4170 pixels BMP image (out.bmp)

32bit
TotalMilliseconds : 819.6748

64bit
TotalMilliseconds : 911.3409



If I disable all "layers code", just load and save bitmap then results are same:

32bit:
TotalMilliseconds : 99.1932
64bit:
TotalMilliseconds : 101.8792



Is this 64bit Delphi compiler issue?

xequte

38182 Posts

Posted - Jan 12 2023 :  14:26:26  Show Profile  Reply
Hi

I'm not seeing that here (Delphi 11 on Windows 11). I'm seeing both as quite similar with 64bit being slightly faster.

Are you running under the debugger?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

petripiirainen

Finland
9 Posts

Posted - Jan 12 2023 :  23:43:01  Show Profile  Reply
I am running release versions.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: