Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Bug]: Custom emoji picker is extremely slow

Open konomikitten opened this issue 1 year ago • 4 comments

Describe the bug

Scrolling through the custom emoji picker is extremely slow and uses an entire core of CPU time.

Steps To Reproduce

  1. Press the post button
  2. Open the custom emoji picker

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Debian Unstable

Package

OS repositories

Troubleshooting information

No response

Additional Context

No response

konomikitten avatar Nov 17 '24 01:11 konomikitten

Thanks for raising this issue!

As it stands I don't think there's much I can do. Assuming you are on tech.lgbt, we have 5937 custom emojis that need to be downloaded, loaded and displayed at once.

Technically a GridView would help with that but we'd lose the categories so postponed.

edit: My suggestion is to use the completion providers instead. Start typing :<emoji name> and a popover with results will show up

GeopJr avatar Nov 17 '24 13:11 GeopJr

edit: My suggestion is to use the completion providers instead. Start typing :<emoji name> and a popover with results will show up

Thanks I'll definitely try this next time.

konomikitten avatar Nov 17 '24 13:11 konomikitten

So I tried typing :<emoji name> instead but unfortunately that doesn't seem to be a good work around as it only shows me the first 3 emoji of 20 emoji.

I also noticed that Tuba locks up showing this dialog when I try to go back to my post from the emoji picker.

Tuba is not responding

konomikitten avatar Dec 04 '24 12:12 konomikitten

Maybe there needs to be an autocompletion delay (ex: 500ms, especially for servers with lots of emojis) added to that particular piece of syntax?

nekohayo avatar Feb 24 '25 02:02 nekohayo