Why do I feel writing in discourse composer became slow?

at the moment that I’m typing; there is a time gap between me clicking on the letter and the letter appearing in the composer.

the pace has became such that the time-gap is visible and you get the feeling that the system is going to hang!

it happens to both our forum (after yesterday update) and meta, but there (at our forum) it’s more visible.

is it something related to my browser or my computer or were there any updates regarding the composer?

7 Likes

Looks like we have something going on here that needs debugging. Seeing fps dip to 10 while typing.

10 Likes

Yep, this was extremely jarring on Android earlier today. So much so that I decided to just switch to voice typing instead.

8 Likes

I can see the backtrace here.

Something is causing the full composer to re-render with the entire composer toolbar on every keypress.

The problem is that the way everything is glued answering “why” is very hard, typing is invalidating something.

Next step is to bisect to find the commit.

This is really really bad, we will need a new beta here @codinghorror

@eviltrout / @david / @joffreyjaffeux I will try bisecting this soon

7 Likes

I think I know what it is., it’ a commit I made 12 days ago!

7 Likes

Serves us right for having fast computers. :slight_smile:

Thanks for taking care of this, will stop looking at it.

7 Likes

Fixed in:

https://github.com/discourse/discourse/commit/7132c50f3bb9776676c8a1ca6eff67227ef36d06

It’s been backported into beta branch. Thanks a lot for the report :+1:

14 Likes

oof good find @Pad_Pors thank you :tada:

4 Likes