High CPU usage by chi.setPathValue
aadi-1024 opened this issue · 4 comments
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.
The generated chart:
Any help appreciated!
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
Any other volunteers to look into this? Or should we close?
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.