Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Grid performance v 2.83 to v.2.84 Collapse All
Subject Author Date
Chris Anderson Jun 1, 2009 - 6:02 PM

We are seeing significant performance degradation when a large number of records are added to the grid. Our product is currently built using 2.83. We do not see a similar problem when running the samples with v 2.84. Are there known performance fixes that can be applied manually from 2.84 to 2.83? Thanks.

Chris Anderson Jun 2, 2009 - 5:25 PM

I’m comparing debug versions of 2.83 vs 2.84. Can you tell me if there are any performance fixes between these two version that I can apply?

Technical Support Jun 3, 2009 - 5:42 AM

We have not changed the scrolling code, mouse and keyboard handling code in Prof-UIS grids since 2.83. The 2.83 and later grids should have exactly the same speed. Please review the following things:

1) Do not use the mouse hover events and effects based on it if your grid displays 50 rows and 30 columns at the same time on the screen.

2) Do not use in-memory grid if you have 5000 rows or columns in it. Switch to a virtually cacheable grid like demonstrated in the AdoRecordsetView sample application.

3) Do not repaint the entire grid if you need to repaint only one cell. The CExtGridWnd::GridCellRectsGet() method can compute rectangle of the grid cell which you then can use in the CWnd::Invalidate() method.

4) Do not repaint the grid window on timer very often, especially if your grid displays 50 rows and 30 columns at the same time on the screen. The Grid dialog page in the ProfUIS_Controls sample application is repainted on timer because this is needed for animated grid cells in the slider column. But this grid is not large.

5) Check all the timer based code, idle time based code and command updating code in your project. If such code is heavy, than it can decrease performance of anything.

Besides, the latest version is 2.85 rather than 2.84.

Technical Support Jun 2, 2009 - 12:55 PM

Grid controls are 100 times slower in debug mode than they are in release mode. We are using heavy assertions everywhere in grids related code. Please check the release version.