Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extreme CPU usage by Ant-Blazor Select-Component #3832

Open
true-perfect-code opened this issue Apr 27, 2024 · 3 comments
Open

Extreme CPU usage by Ant-Blazor Select-Component #3832

true-perfect-code opened this issue Apr 27, 2024 · 3 comments

Comments

@true-perfect-code
Copy link

Dear Ant-Community

I have also reported this problem to CommunityToolkit, see: CommunityToolkit/Maui#1837

The problem only occurs with MAUI Blazor if you install the .NET MAUI Community Toolkit. It appears when the Ant-Select component hangs and this happens because the CPU usage becomes extreme.

I have canceled the execution a few times and have seen that the execution rotates at the focus event in the Select.cs of Ant.

Interestingly, this problem does not exist with HTML Select, which leads to the conclusion that it most likely has to do with fired events (in Ant).

If you try it with older Ant versions, for example 16, then the problem also exists there.

Here is github project to reproduce this problem: https://github.com/true-perfect-code/MauiAppAntToolKit

And here's what it looks like
image

Regards
pc

@ElderJames
Copy link
Member

Hey @true-perfect-code , it works well on my machine.

@true-perfect-code
Copy link
Author

Hi @ElderJames

I have looked at the GitHub repo on another compute and I can confirm the problem, but it is not extreme like on the actual PC. This is probably also because I ran repo on an Intel Core i3-8100. I don't notice any delay on this PC, but you can see in the task manager that the CPU utilization is very high for up to 10 seconds, which shouldn't be the case.

I know Ant doesn't need a new "bug", but maybe it wouldn't be a bad idea for the owner of the Select component to take a look at this problem and see where this extreme CPU utilization is coming from when using MAUI ToolKit Nuget?

Here is CPU usage on Intel Core i3-8100, Windows 11
image

Thank you
pc

@true-perfect-code
Copy link
Author

It seems that the problem comes from the Ant component after all. Please check:

CommunityToolkit/Maui#1837 (comment)

Can the developer of the select-component have a look at this in debug mode, he will be able to find out very quickly where the problem is?

Thanks
pc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants