Re: New verbose logging and -DSMALL

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Fri, 6 Nov 2020, Thorsten Glaser wrote:

> Hi,
> 
> could you make it easy to ifdef out the LogVerbose option
> and the file/func/line parameters, to build a version for
> a RAMDISK setup?

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

before
-rwxr-xr-x  1 djm  wobj  1039752 Nov 13 14:50 ssh/obj/ssh
-rwxr-xr-x  1 djm  wobj  1138344 Nov 13 14:50 sshd/obj/sshd
after:
-rwxr-xr-x  1 djm  wobj  1031560 Nov 13 14:51 ssh/obj/ssh
-rwxr-xr-x  1 djm  wobj  1130360 Nov 13 14:51 sshd/obj/sshd

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

-rwxr-xr-x  1 djm  wobj   968288 Nov 13 14:55 ssh/obj/ssh
-rwxr-xr-x  1 djm  wobj  1069600 Nov 13 14:55 sshd/obj/sshd

I don't think it is worth it.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux