[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [1.19.2] wildcard in regex not working in (e)grep, awk, sed when
From:       Ed W <lists () wildgooses ! com>
Date:       2011-09-28 8:53:40
Message-ID: 4E82E094.405 () wildgooses ! com
[Download RAW message or body]

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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic