Re: [hackers] [st][patch] Increase the buffer size for escape sequences

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Tue, 25 Sep 2018 10:25:59 +0200

On Tue, Sep 25, 2018 at 10:05 AM Roberto E. Vargas Caballero
<k0ga_AT_shike2.com> wrote:
> On Mon, Sep 24, 2018 at 05:45:29PM -0700, Eric Pruitt wrote:
> > I agree that the current buffer is too small. I'm pretty sure I've run
> > into this problem myself with Vim and Bash, but I hadn't gotten around
> > to digging into the problem.
>
> If we go to increase that size, I would go to use dynamic memory. Having
> an array of 1MB statically allocated is a crazy idea (and it is not
> C99 compliant, where the maximun allocated size is 128K).

On my machine, st uses 11MB up to 15MB of memory currently. If we just add 1MB
of statically-allocated space it would blow up that size by 9% in some cases so
I am also in favor of using dynamic memory there.
Received on Tue Sep 25 2018 - 10:25:59 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 25 2018 - 10:36:24 CEST