[PATCH] fuser: code shrink ~90 bytes

Maksym Kryzhanovskyy xmaks at email.cz
Sun May 8 18:48:23 UTC 2011


Hi Denis,

attached is a patch for the fuser applet. Please review and consider usage.

function                                             old     new   delta
scan_proc_net_or_maps                                  -     409    +409
scan_recursive                                         -     399    +399
.rodata                                           148456  148539     +83
search_dev_inode                                      56      53      -3
add_pid                                               51       -     -51
scan_link                                             52       -     -52
scan_dir_links                                       106       -    -106
scan_pid_maps                                        230       -    -230
fuser_main                                           907     365    -542
------------------------------------------------------------------------------
(add/remove: 2/4 grow/shrink: 1/2 up/down: 891/-984)          Total: -93 bytes
   text	   data	    bss	    dec	    hex	filename
 928597	   4122	   9568	 942287	  e60cf	busybox_old
 928432	   4122	   9568	 942122	  e602a	busybox_unstripped


Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox.fuser.patch
Type: text/x-patch
Size: 9467 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110508/89306eac/attachment.bin>


More information about the busybox mailing list