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

High CPU usage by chi.setPathValue #916

Closed
aadi-1024 opened this issue Jun 1, 2024 · 4 comments
Closed

High CPU usage by chi.setPathValue #916

aadi-1024 opened this issue Jun 1, 2024 · 4 comments
Assignees

Comments

@aadi-1024
Copy link

Hello

I'm not sure if this is an issue with Chi or somewhere in my own application, but the setPathValue() function seems to be causing very high CPU usage for me. It seems to be due to the hashing taking place in the function(pardon if I'm wrong) as I could infer from the pprof profile output.

image

The generated chart:

image

Any help appreciated!

@aadi-1024
Copy link
Author

image

could this be the issue? all the entries are just "*"

@aadi-1024
Copy link
Author

A bit more digging around and it seems mounting a group with a prefix "/" causes this. I'll look into a bit more to see if I can fix this

@VojtechVitek
Copy link
Contributor

Any other volunteers to look into this? Or should we close?

@aadi-1024
Copy link
Author

I'll be looking into this again once I can manage some time :). Till then I suppose we can close this, I'll open a new issue if I'm able to solve it. Or maybe can just wait for other volunteers to chime in.

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

No branches or pull requests

2 participants