Performance issue when idle

Hi,

I observe performance issue in idle state with SfDataGrid when FrozenColumnCount is higher than 0. In that case I can see CPU between 1-2% and continuous memory allocations when app is idle. 

When FrozenColumnCount is set to 0 then CPU is 0 and memory allocations are gone.

You can test it in attached sample.

Thanks


Attachment: SfDataGrid_Demo_92d23cd6.zip

25 Replies

AR Arulpriya Ramalingam Syncfusion Team December 7, 2021 01:42 PM UTC

Hi Ondrej, 
 
Thank you for your interest in Syncfusion products. 
 
We could understand the use case that setting FrozenColumnCount as more than zero causes performance in CPU usage and could reproduce the reported scenario. We need some more time to analyze further with performance profiler and we will update you the proper details on 09th December 2021. 
 
We appreciate your patience till then. 
 
Regards, 
Arulpriya Ramalingam 



AR Arulpriya Ramalingam Syncfusion Team December 9, 2021 02:03 PM UTC

Hi Ondrej 
 
From the analysis of performance profiler, the SfDataGrid does not seems to cause the CPU usage. So, please confirm the way that you are using to analyze the performance at your end. So that, we will analyze with that method and update you the details. 
 
Regards, 
Arulpriya Ramalingam  



OS Ondrej Svoboda December 9, 2021 02:11 PM UTC

Hi,

from my observations it looks like some styling is causing high CPU - animation, progress bar, etc...

But it must be connected to SfDataGrid somehow if it can be controlled via  FrozenColumnCount property. Or what do you think is causing that?


Regards

Ondřej



OS Ondrej Svoboda December 9, 2021 02:49 PM UTC

I use JetBrains dotMemory profiler and there I can see constant memory allocation in heap generation 0:


This is of course connected to CPU and it is not normal behavior of idle application.

When comparing two snapshots I get that the memory allocations are happening on this path:

From that I infer that it is style connected issue.

Of course if I set  FrozenColumnCount to 0 then no memory allocations are happening and CPU is 0%.


Have a look on it please.




AR Arulpriya Ramalingam Syncfusion Team December 10, 2021 02:01 PM UTC

Hi Ondrej 
 
We need to get all the required software (JetBrains) to test the reported use case at our end. So, we need some more time to install and check the reported scenario. we will update you with proper details on 15th December 2021. 
 
Regards, 
Arulpriya Ramalingam 



SS Sampathnarayanan Sankaralingam Syncfusion Team December 16, 2021 12:55 PM UTC

Hi Ondrej , 
We have checked the reported CPU usage using JetBrains profiler and we are able reproduce the same in our end..  We are in need of some more time to analyze the cause for the issue and we will update you with proper details on December 20, 2021. 
Regards, 
Sampath Narayanan.S 



SS Sampathnarayanan Sankaralingam Syncfusion Team December 20, 2021 01:03 PM UTC

Hi Ondrej , 
 
We are validating the reported issue. We will update you with the proper details on December 22, 2021. 
 
Regards, 
Sampath Narayanan.S 



SS Sampathnarayanan Sankaralingam Syncfusion Team December 22, 2021 01:24 PM UTC

Hi Ondrej ,  
 
We have analyzed the reported issue. We would like to let you know that we have achieved the frozen columns using the visual state. On further analysis we have found that the performance issue occurs due to the setting the visual state. While referring the Microsoft docs, we have found using the VisualState will cause the performance issue. Please refer the below msdn link  
 
 
Please let us know if you have any concerns.  
 
Regards, 
Sampath Narayanan.S 



OS Ondrej Svoboda December 22, 2021 03:21 PM UTC

Hi,

Its good to know you've found the cause of the problem. Is there a way how to improve your style and get rid of that CPU issue? I think there must be, the docs you are refering to mentions performance impact when there are animations used. But I don't see any animations in connection with frozen columns.

I've seen similar problem connected to animation on progress bar. In that case animations were using CPU even when progress bar was hidden - I believe this will be something similar.

I would realy appreciate if you could have a look on possible improvements in this functionality.


Thank you!

Ondřej Svoboda



SS Sampathnarayanan Sankaralingam Syncfusion Team December 23, 2021 12:54 PM UTC

Hi Ondrej  
  
We are validating the issue. We will update you with the proper details on December 28, 2021.  
  
Regards,  
Sampath Narayanan.S  



SS Sampathnarayanan Sankaralingam Syncfusion Team December 28, 2021 02:00 PM UTC

Hi Ondrej ,   
   
We are validating the issue. We will update you with the proper details on December 30, 2021.   
  
Regards,   
Sampath Narayanan.S   



SS Sampathnarayanan Sankaralingam Syncfusion Team December 30, 2021 12:08 PM UTC

Hi  Ondrej, 
 
We have analyzed the scenario in our end. We have used the animation to increase the thickness of the frozen column border line. However, we have raised an MSDN query regarding the issue. Please find the github query link below. We will update you once we got solution from the Microsoft. 
 
 
Regards, 
Sampath Narayanan.S 



OS Ondrej Svoboda January 4, 2022 12:48 PM UTC

Hi,

I've checked the WpfApp1 sample from github link above. Seems that the problem is with Duration parameter. For some reason Duration="1" ​makes troubles. If you change it to Duration="0:0:1" or Duration="Automatic" ​or if you remove the parameter then CPU is 0. 

Check it out, please.



VS Vijayarasan Sivanandham Syncfusion Team January 5, 2022 03:42 PM UTC

Hi Ondrej Svoboda,

Based on provided information we are checking your reported scenario with the sample from GitHub. So, we need two more business days to validate this. We will update with further details on or before January 07, 2022.

We appreciate your patience and understanding.

Regards,
Vijayarasan S



SS Sampathnarayanan Sankaralingam Syncfusion Team January 7, 2022 02:42 PM UTC

Hi Ondrej,


We are still facing the issue from our side. We will fix this issue once we get a proper solution from the Microsoft.


Regards,

Sampath Narayanan.S



OS Ondrej Svoboda January 7, 2022 03:02 PM UTC

Please have a look on attached sample - the only change there is that Duration property has been removed. Then the CPU problem is gone based on my observations.

I'll also post this info to the github issue you cretated. Maybe it will help them and speed up the solution.

I think better would be to use this kind of workaround, rather then wait for proper solution from Microsoft which I'm afraid can take a long time.


Attachment: WpfApp1_7b6c1e03.zip


SS Sampathnarayanan Sankaralingam Syncfusion Team January 10, 2022 02:54 PM UTC

Hi Ondrej,


We have checked the work around but we are still facing the issue from our end. We will fix once we got a proper solution from the Microsoft. We appreciate your patience until then.


Regards,

Sampath Narayanan.S



OS Ondrej Svoboda January 17, 2022 02:15 PM UTC

Hi,

do you have experience with Microsoft support in such cases? When do you think they will deliver some solution? I'm really sceptical about that.

In the mean time I've found that the same issue occurs when using FilterRowPosition="FixedTop". Please check.

Regards

Ondřej



OS Ondrej Svoboda January 17, 2022 02:26 PM UTC

Also please check this note on github: https://github.com/dotnet/wpf#net-framework-issues

Looks like this issue should be reported elsewhere...


Please don't feel offended, I'm just trying to get it fixed ASAP. Thanks.



SS Sampathnarayanan Sankaralingam Syncfusion Team January 18, 2022 02:17 PM UTC

Hi Ondrej,


We usually raise the query in the github and also have got a support from Microsoft to resolve the issue. We have also posted the query in the developercommunity also. We will fix the issue once we get the update for the Microsoft. We appreciate your patience until then.


DeveloperCommunity Link : https://developercommunity.visualstudio.com/t/cpu-perfomance-issue-occurs-when-setting-the-visua/1640217?from=email


Regards,

Sampath Narayanan.S



OS Ondrej Svoboda May 2, 2022 02:55 PM UTC

Hi,

is there anything new regarding this issue?

Thanks

Ondřej



VD Vasanthkumar Durairaj Syncfusion Team May 3, 2022 12:53 PM UTC

Hi Ondrej


Still, we didn’t get any proper details from the developer community. We will let you know once we get the solution.


We appreciate your patience until then.


Regards,
Vasanthkumar D

 



OS Ondrej Svoboda November 18, 2022 09:07 AM UTC

Hi,

anything new about this topic?



DM Dhanasekar Mohanraj Syncfusion Team November 21, 2022 04:04 PM UTC

Ondrej Svoboda,


Currently, we are trying to create the issue reproducible simple sample with the provided details and we will update the MSDN query with the issue reproducing sample shortly.



DM Dhanasekar Mohanraj Syncfusion Team January 27, 2023 01:02 PM UTC

Ondrej,

We have created the new query in the Microsoft developer community forum with the updated sample. Please find the below link,

Developer Community Link: https://developercommunity.visualstudio.com/t/CPU-Performance-issue-occurs-when-settin/10262350?from=email

We will update you with details once we get the solution from MSDN. We appreciate your patience until then.


Loader.
Up arrow icon