tumashu / company-posframe

121 stars 24 forks source link

Performance problems #17

Closed dgutov closed 4 years ago

dgutov commented 4 years ago

It's noticeably slow than the built-in overlay based popup. Even if I disable extra stuff such as "indicator" and "metadata". Try pressing M-n and seeing how fact the list is scrolled. The built-in popup scrolling is smooth, posframe-based one is not.

It also affects simply typing since the posframe is updated synchronously anyway.

I'm using Ubuntu 19.04 and GNOME 3.32.1 (for now).

tumashu commented 4 years ago

it is true that posframe is slow than popup, but it should not affect type.

dgutov commented 4 years ago

Can we make it into a bug report for Emacs? Like, is there a particular operation on child frames that you found to be inevitably slow?

tumashu commented 4 years ago

Today< I have tested company-posframe in gnome, and find that is is much slower than in xfce4. the reason is not be found at the moment.

Alexander-Miller commented 4 years ago

Does this help?

dgutov commented 4 years ago

I'm using Emacs 27 (latest build) :frowning_face:

tumashu commented 4 years ago

i think it is set-frame-size's problem in gnome-shell

dgutov commented 4 years ago

set-frame-size

So it's both slow and doesn't work properly either (#2)?

tumashu commented 4 years ago

yes

failable commented 4 years ago

Scrolling is slow and laggy on my emacs 26.3 and OSX 10.15.2.

tumashu commented 4 years ago

I have send a mail to emacs-devel: https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00343.html

dgutov commented 4 years ago

With resizing problems taken care of, scrolling is still slow, compared to the overlay-based frontend. You can easily observe this by flooring M-n.

I wonder if we could work on improving it next.