Subject: bug#59641: term is very slow

From: Eli Zaretskii <[email-masked]>
Date: Sat, 17 Dec 2022 17:47:31 +0200

> From: Akib Azmain Turja <[email-masked]>
> Cc: [email-masked]
> Date: Sat, 17 Dec 2022 18:32:09 +0600
> 
> I guess the hot spot here is 'vertical-motion'.  'vertical-motion' takes
> various things into account, which are unnecessary for a terminal
> emulator.  Eat implements its own motion functions, which make their own
> assumptions (e.g. each character takes exactly one column, each line
> finishes with a newline, etc).  I guess this might be a reason why Eat
> is faster.

If there's no need for the specific features that vertical-motion
provides, calling it might indeed be unnecessary.