Atozed Forums

Full Version: Call TPicture.Assign in an IntraWeb application is much slower
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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
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....