On 28/09/2011 06:25, Tomasz Czapiewski wrote:
>
> The problem is with line lenght - file has almost 190KB in one line.
> When I cut the lines for ~3KB in each line regex search works fine on
> uClibc linked busybox.
>
> Btw. has someone any idea how to improve performance of such search?
> Script with three such 'egrep' commands to match 4-5 tags in xml in
> each command for ~400KB file executes in around 0,01-0,02s in PC while
> on embedded device it's almost 1s for <190KB file.

See the previous email threads on my modprobe performance issues.  I
think busybox had a slow implementation of line reading, in theory this
was improved for 1.19, but I haven't tested this.  I think if you
profile a bit you may find that you spend a bunch of time in libbb and
the readline command?  Can you confirm?

Also note that uclibc is basically "stable" each time they make a
release.  0.9.32 is a massive step up and you need to give some serious
consideration to bumping if you can (it will also likely save you a
whole bunch of debugging time...)

Good luck

Ed W
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to