[Toybox] [PATCH] Speed up tail.test for shells without builtin printf.

enh enh at google.com
Fri Apr 7 23:19:14 PDT 2017


The test only needs echo, and Android currently doesn't use mksh's
builtin printf; the toybox printf is fuller featured and less buggy,
but a lot slower to call in a loop like this (and mksh doesn't fall
back to the printf on the path if given something it can't handle,
so we can't have the best of both worlds).

Without this hack, the tail test takes as long as all the other
tests put together.
---
 tests/tail.test | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170407/510a13d4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Speed-up-tail.test-for-shells-without-builtin-printf.patch
Type: text/x-patch
Size: 1248 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170407/510a13d4/attachment-0003.bin>


More information about the Toybox mailing list