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
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
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.
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
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.
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
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
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.
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
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
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.
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
Hi,
is there anything new regarding this issue?
Thanks
Ondřej
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
Hi,
anything new about this topic?
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.
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.