Call TPicture.Assign in an IntraWeb application is much slower

<< Click to Display Table of Contents >>

Navigation:  Forum >

Call TPicture.Assign in an IntraWeb application is much slower

Forum link

 

 

 


 

04-26-2024, 09:48 AM:

 

Hello guys,

 

I'm using Delphi 12 and IntraWeb 15.6.0. I encountered an issue where calling TPicture.Assign in an IntraWeb application is much slower (2 to 3 times) than in a VCL application. Any idea what the cause might be?

 

I have attached a sample project for your reference. Thank you.

 

 

 


 

04-29-2024, 06:26 AM:

 

I'll have a look. There is no special handling of image assignment in IntraWeb code. Whatever it is, likely to be a VCL/RTL issue.

 

I'll get back to you on this

 

 

 


 

04-29-2024, 06:54 AM:

 

I tested your application and I couldn't find any significant difference.

 

I modified your application to log the times on the form itself so we could compare the times for 10 consecutive runs. Here's the results:

 

[attachment=736]

 

The difference is statistically not significant. There is something else going on there....