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

enh enh at google.com
Fri Apr 14 15:11:42 PDT 2017


ping?

On Fri, Apr 7, 2017 at 11:19 PM, enh <enh at google.com> wrote:

>
> 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(-)
>
>


-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170414/5b0d82eb/attachment-0003.htm>


More information about the Toybox mailing list