HUGE CPU usage when recategorizing a topic and retitling it

On this topic I was changing the category to Support and fixing the title, but I noticed that after selecting the category, every character I typed in the topic title bar would make the browser spike to 100% CPU. Memory usage also spikes for a while.

It does not do this when not changing the category.

If I mash a whole bunch of keys at once it takes several seconds to catch up.

Reproduced using both Chrome and Firefox

4 Likes

Something for @joffreyjaffeux to investigate?

3 Likes

I have tracked it down to a too broad usage of didReceiveAttrs, this should vastly improve it:

https://github.com/discourse/discourse/pull/7525

https://github.com/discourse/discourse/pull/7528

10 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.