On Fri, Jan 4, 2019 at 10:16 PM <marco.naw...@colosso.nl> wrote:
>
> On Thursday, January 3, 2019 at 9:40:43 PM UTC+1, Chris Angelico wrote:
> > On Fri, Jan 4, 2019 at 7:37 AM Mohan Mohta <mohan.mo...@gmail.com> wrote:
> > > I am no expert in python but I found grep is lot faster in than the 
> > > methods of reading files from python.... point me to direction if you 
> > > know of anything faster I would appreciate it.
> > >
> >
> > Try doing things the simple and easy way in Python, then figure out if
> > it's too slow. Only THEN should you worry about "faster".
> >
> > ChrisA
>
> Yeah, and once you find out you need to go faster and subsequently start 
> looking into ways you *can* go faster, you finally end up with code similar 
> to what is implemented in the grep family of tools.
>

Maybe... but most likely not using a subprocess. But it's still
premature to worry about performance when you don't have any evidence
that your code is too slow.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to