It's been a week since I sent this in. Does anyone have any questions, comments, thoughts or opinions?

On 12/11/2018 12:29 PM, Jody Bruchon wrote:
This updated version of the jdupes duplicate file finder port to BusyBox adds a whole host of feature exclusions that allow further reduction of the applet's size. Nearly all of the final actions performed by jdupes (deletion, linking, etc.) can be done by piping the output to a shell script anyway, though it's not as convenient or quick as having the program do it for you. All final actions other than printing match sets can now be disabled, and all of the progress bar code can now be tossed out as well.

With the new exclusions available, a BusyBox defconfig with a fully stripped down jdupes weighs in just barely under 10K:

$ size busybox_with*
   text    data     bss     dec     hex filename
1009790    6763    3648 1020201   f9129 busybox_with_jdupes
1000754    6747    3512 1011013   f6d45 busybox_with_jdupes_minimal
 991308    6731    3216 1001255   f4727 busybox_without_jdupes

Modified time support being disabled will reduce the size of the heavily used per-file struct by a time_t and throws out time checks in a some "hot" code paths, speeding things up a bit more. The clear downside is that this opens the gates wide for TOCTTOU errors if chosen and I've noted that in the help text.

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to