On Tue, Sep 25, 2018 at 10:05 AM Roberto E. Vargas Caballero <k...@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.