Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call TPicture.Assign in an IntraWeb application is much slower
#1
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.


Attached Files Thumbnail(s)
   

.zip   d29.iw-picture.assign.zip (Size: 18.17 KB / Downloads: 2)
Reply
#2
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
Reply
#3
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:

   

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


Forum Jump:


Users browsing this thread: 1 Guest(s)