Greetings.

On Sat, 05 Jan 2013 18:55:12 +0100 Charlie Kester <corky1...@comcast.net> wrote:
> Of course, some growth is expected as new features are added, but going 
> from 38k to 618k is hard to swallow.

On my system:

        % ls -hs st-0.3/st
        126K st
        % strip st-0.3/st && ls -hs st-0.3/st
        48K
        % ls -hs scm/st/st
        178K
        % strip scm/st/st && ls -hs scm/st/st
        91K st

But  I  found out what’s causing the 50k(!) increase. It’s the big key[]
array.  Simply remove it and you get back the old 48k size. So the ques‐
tion  is,  if  this  array could be optimized out. The escape codes only
partially have a system that could be replaced with ranges.

On my system:

        % ls -hs /usr/bin/xterm /usr/bin/urxvt
        1.3M /usr/bin/urxvt  452K /usr/bin/xterm

That array gives st a better escape key support than any other terminal,
but it bloats it with seldom used features and is now more than  50%  of
its size.  That’s hard to decide. :/

What are the list's opinions?


Sincerely,

Christoph Lohmann


Reply via email to