Chargen patch

Jason Schoon floydpink at gmail.com
Mon Nov 6 06:15:27 PST 2006


On 11/6/06, hinko.kocevar at cetrtapot.si <hinko.kocevar at cetrtapot.si> wrote:
>
> Hello,
>
> I've been looking for a utility like this for some time and I finally
> decided to code the solution by myself.
> I've needed a way to generate files with same contents (eg. 16k file
> with 0xFF).
> Now, doing it in shell with echo took quite sometime (approx 20 minutes)
> for 16k file containing only 0xFFs on my slow embedded system. So I
> wrote small busybox applet and now I can generate 16k file in few ms;)
>
> Here is the patch. I hope I didn't forget any bits, otherwise feel free
> to request them!
>
> If you think this could be useful please don't hesitate to include the
> applet in next busybox release.


You said this was fast compared to echo.  Did you compare it to say 'cat',
or 'dd'?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20061106/a2c2cf1b/attachment.htm 


More information about the busybox mailing list