New verbose logging and -DSMALL

Thorsten Glaser t.glaser at tarent.de
Mon Nov 16 01:49:35 AEDT 2020


Hi,

> so I experimented with this, replacing __func__ and __FILE__ with "" in
> log.h and the savings don't seem worth it:

my baseline is a bit lower (less algorithms) and could go
down even more…

   text    data     bss     dec     hex filename
 371332    3068   11092  385492   5e1d4 ssh/obj/ssh
 415880    3820   12028  431728   69670 sshd/obj/sshd

… but, yes, less than 8 KiB don’t seem all that much.

> making debug*() expand to nothing produces arguable benefits too

True. Plus, the debug messages themselves are valuable.

> I don't think it is worth it.

Agreed. It was worth a try and thank you for looking
into it.

bye,
//mirabilos
-- 
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)


More information about the openssh-unix-dev mailing list