python vs. grep

Anton Slesarev slesarev.anton at gmail.com
Wed May 7 17:11:48 EDT 2008


On May 7, 7:22 pm, Pop User <popu... at christest2.dc.k12us.com> wrote:
> Anton Slesarev wrote:
>
> > But I have some problem with writing performance grep analog.
>
> I don't think you can ever catch grep.  Searching is its only purpose in
> life and its very good at it.  You may be able to come closer, this
> thread relates.
>
> http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
>
> This relates to the speed of re.  If you don't need regex don't use re.
>   If you do need re an alternate re library might be useful but you
> aren't going to catch grep.

In my last test I dont use re. As I understand the main problem in
reading file.



More information about the Python-list mailing list