Proposal for a new applet: strings
tito
farmatito at tiscali.it
Fri Jul 21 20:32:19 UTC 2023
On Fri, 21 Jul 2023 21:39:57 +0200
"Roberto A. Foglietta" <roberto.foglietta at gmail.com> wrote:
> To the maintainers and everyone else whom can be interested,
>
> today I developed for a mobile device running a Linux kernel and
> related GNU system (almost) a quite promising version of 'strings'
> faster than the original and giving out the same output with the same
> syntax. Good for me!
>
> I hope it will be good enough for you also. However, before starting
> the integration with busybox I wish to know if this applet and/or its
> implementation or an improved one, would have a good chance and
> appreciation to enter in the busybox development stream.
>
> Here in the attachment I put the .c file in GPLv2, like busybox. In
> its header just a raw estimation of its performance that can vary from
> system to system and among different platforms but at least comparable
> with the original from binutils.
>
> Best regards, R-
Hi,
seems to me that the current strings busybox implementation is faster.
tito at devuan:~/Desktop$ time ./strings vmlinux.o > out.txt
real 0m0.369s
user 0m0.365s
sys 0m0.004s
tito at devuan:~/Desktop$ time ./busybox strings vmlinux.o > out1.txt
real 0m0.289s
user 0m0.277s
sys 0m0.012s
tito at devuan:~/Desktop$ rm out*.txt
tito at devuan:~/Desktop$ time ./strings vmlinux.o > out.txt
real 0m0.355s
user 0m0.347s
sys 0m0.008s
tito at devuan:~/Desktop$ time ./busybox strings vmlinux.o > out1.txt
real 0m0.291s
user 0m0.286s
sys 0m0.004s
tito at devuan:~/Desktop$ rm out*.txt
tito at devuan:~/Desktop$ time ./strings vmlinux.o > out.txt
real 0m0.356s
user 0m0.335s
sys 0m0.020s
tito at devuan:~/Desktop$ time ./busybox strings vmlinux.o > out1.txt
real 0m0.291s
user 0m0.274s
sys 0m0.016s
Ciao,
Tito
More information about the busybox
mailing list