TeeChart displays extremely slow in cxRTTIInspector

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
gerhardsachs
Newbie
Newbie
Posts: 10
Joined: Thu Mar 13, 2014 12:00 am

TeeChart displays extremely slow in cxRTTIInspector

Post by gerhardsachs » Mon Mar 02, 2015 10:53 am

In a project where the customer must be able to change component properties at runtime I use the DevExpress RTTIInspector.
Normally changing components that are to be displayed there takes no time.
Whenever a TeeChart ist displayed (cxRTTIInspector1.InspectedObject := Chart1) it takes several seconds until the properties are displayed.
This delay is even there when switching back from TeeChart to a Label, for example.
Delphi XE7 32Bit, VCL, TeeChart V2014.12.140923, DevExpress V14.1.5.
The attached sample shows the problems.
I had to remove the exe, it was too big for your server.

Regards
Gerhard Sachs
Attachments
Problem mit DevExpress RTTI Inspector.zip
Sample project
(60.13 KiB) Downloaded 572 times

Yeray
Site Admin
Site Admin
Posts: 9533
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart displays extremely slow in cxRTTIInspector

Post by Yeray » Tue Mar 03, 2015 10:50 am

Hello Gerhard,

I can't build the project. I get a "Required package 'rbADO1621' not found" error.
Note I'm using the evaluation version here that forces me to set the project to "Link with runtime packages"
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

gerhardsachs
Newbie
Newbie
Posts: 10
Joined: Thu Mar 13, 2014 12:00 am

Re: TeeChart displays extremely slow in cxRTTIInspector

Post by gerhardsachs » Tue Mar 03, 2015 12:44 pm

Hello Yeray,
you can download the exe of the test Project here :
https://app.box.com/s/kf9qwwq51njrtw2dnvi89gjyti4ym97y

Meanwhile I got an answer from Devexpress.
This what they answered :
--------------------------------------------------------------------------------------------------------------------------------------
This issue is likely caused by the fact that TeeChart has much more different published properties than such controls as TcxLabel and TcxProgressBar. Moreover, TeeChart has many levels of expandable properties. No wonder it takes more time to get and group all of them.
--------------------------------------------------------------------------------------------------------------------------------------
I use TeeChart not directly, but by creating a derived class.
Do you know if it is possible to reduce the number of published properties of a base class in a derived class ?
Actually I need just a few fublished properties, the rest of the word is done vía ChartEditor.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TeeChart displays extremely slow in cxRTTIInspector

Post by Narcís » Fri Mar 06, 2015 4:05 pm

Hello Gerhard,

Thanks for your feedback.
gerhardsachs wrote: Do you know if it is possible to reduce the number of published properties of a base class in a derived class ?
No published properties can be eliminated. Otherwise they wouldn't be serialized in the .dfm.

The editors could be optimized to "lazy load" properties when the user expands a node in the inspector instead of loading all properties at the beginning.

A non TeeChart related test would be a form inspector with lots of controls (tabs, frames inside tabs, etc.). It would also be slow due to the accumulation of properties.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

gerhardsachs
Newbie
Newbie
Posts: 10
Joined: Thu Mar 13, 2014 12:00 am

Re: TeeChart displays extremely slow in cxRTTIInspector

Post by gerhardsachs » Fri Mar 06, 2015 4:41 pm

Hello Narcis,
the DevExpress RTTIInspector has a filter event where properties can be excluded from loading.
They told me that this would indeed speedup the loading process.
In general, only a few properties needs to be accessable by the user.
This is especially true at TeeChart, where most settings will be made via the charteditor.
I know which way to go now and you can close this case.
Best regards
Gerhard Sachs

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TeeChart displays extremely slow in cxRTTIInspector

Post by Narcís » Mon Mar 09, 2015 8:13 am

Hi Gerhard,

Excellent, thanks for your feedback.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply