# Why do I feel writing in discourse composer became slow?

**URL:** https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948
**Category:** Bug
**Created:** [23 april 2020 om 05:09 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948 "2020-04-23T05:09:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [23 april 2020 om 05:09 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/1 "2020-04-23T05:09:57Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 april 2020 om 05:13 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/2 "2020-04-23T05:13:12Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/c/fce9c1fce805e3aa9789d253793fb6de73f3ed68.png)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [23 april 2020 om 05:34 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/3 "2020-04-23T05:34:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 april 2020 om 05:40 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/4 "2020-04-23T05:40:57Z")

</div>

I can see the backtrace here.

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/5/b5a03a6ab5073c79d9816449f5d0085d4d50d74a.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/8/98421d65cbb530703697600bed984af25b1c9dac.png)

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 / @j.jaffeux I will try bisecting this soon

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [23 april 2020 om 05:46 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/5 "2020-04-23T05:46:12Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23 april 2020 om 05:46 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/6 "2020-04-23T05:46:50Z")

</div>

Serves us right for having fast computers. 🙂

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

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [23 april 2020 om 06:32 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/9 "2020-04-23T06:32:11Z")

</div>

Fixed in:

[https://github.com/discourse/discourse/commit/7132c50f3bb9776676c8a1ca6eff67227ef36d06](https://github.com/discourse/discourse/commit/7132c50f3bb9776676c8a1ca6eff67227ef36d06)

It’s been backported into beta branch. Thanks a lot for the report 👍

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [23 april 2020 om 06:32 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/10 "2020-04-23T06:32:23Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [23 april 2020 om 16:09 UTC](https://meta.discourse.org/t/why-do-i-feel-writing-in-discourse-composer-became-slow/148948/11 "2020-04-23T16:09:05Z")

</div>

oof good find @Pad_Pors thank you 🎉
