# Emoji picker search performance

**URL:** <https://meta.discourse.org/t/emoji-picker-search-performance/79199>\
**Category:** UX\
**Created:** [January 28, 2018, 12:30pm UTC](https://meta.discourse.org/t/emoji-picker-search-performance/79199 "2018-01-28T12:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [January 28, 2018, 12:30pm UTC](https://meta.discourse.org/t/emoji-picker-search-performance/79199/1 "2018-01-28T12:30:34Z")

</div>

When using the emoji picker on mobile devices, it can be quite sluggish when typing into the search box. Waiting a bit of time for results isn’t a problem, but something seems to be impacting the performance of the `<input>` field itself.

The easiest way to repro is using the CPU slowdown options in the chrome dev tools. It seems to be worse when pressing the backspace key. Here’s a video - I pressed backspace 5 times in quick succession, and you can see that the text in the input field disappears sporadically. (6x CPU slowdown in chrome dev tools, to exaggerate the problem)

[https://global.discourse-cdn.com/meta/original/3X/7/3/731ccfaee60e66c0433eba42a25b9f8ecdcc9e7c.mp4](https://global.discourse-cdn.com/meta/original/3X/7/3/731ccfaee60e66c0433eba42a25b9f8ecdcc9e7c.mp4)

It looks like there is already some `debounce` logic here, so I’m not sure if there’s an easy solution…

> <https://github.com/discourse/discourse/blob/5a715b7d55f443e9783e34609f0a39c2a0de86fb/app/assets/javascripts/discourse/components/emoji-picker.js.es6#L89-L93>

---

_[View the full topic](https://meta.discourse.org/t/emoji-picker-search-performance/79199)._
