python vs. grep

Pop User popuser at christest2.dc.k12us.com
Wed May 7 11:22:54 EDT 2008


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/2f564523f476840a/d9476da5d7a9e466

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.





More information about the Python-list mailing list