Re: how to search multiple textfiles ? (Python is slow ?)

2008-10-01 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Stef Mientki wrote: Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Stef Mientki wrote: I'm really amazed by the speed of Python !! It can only be beaten by findstr, which is only available on windows. Did you try find -exec grep -F? well my

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-29 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Stef Mientki wrote: - Pyscripter 110 sec ( PyScripter is the default IDE I use now) - Delphi 20 .. 35 sec - Findstr 4 sec What order did you try try them in? Did you try each one more than once, in different orders? Just to rule out filesystem caching effects.

Re: how to search multiple textfiles ?

2008-09-29 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], George Sakkis wrote: $ find -name *py | xargs egrep \bword\b Better: find -name '*.py' -exec grep -E \bword\b {} \; -- http://mail.python.org/mailman/listinfo/python-list

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-29 Thread Stef Mientki
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Stef Mientki wrote: - Pyscripter 110 sec ( PyScripter is the default IDE I use now) - Delphi 20 .. 35 sec - Findstr 4 sec What order did you try try them in? Did you try each one more than once, in different orders? Just to

Re: how to search multiple textfiles ?

2008-09-29 Thread George Sakkis
On Sep 29, 5:16 am, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], George Sakkis wrote: $ find -name *py | xargs egrep \bword\b Better:     find -name '*.py' -exec grep -E \bword\b {} \; In what way is this better ? I don't dispute it,

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-27 Thread M�ta-MCI (MVP)
Hi ! Thanks for return. Some infos: from a long time, I found that it's often more fast to use windows's command, instead of develop in high level language (and also, low level...) FINDSTR is fast. OK. But internal commands are more fast. Example : DIR (with all his options) And it's

how to search multiple textfiles ?

2008-09-26 Thread Stef Mientki
hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant information through google. Does anyone know of a search library that performs this task

Re: how to search multiple textfiles ?

2008-09-26 Thread Mike Driscoll
On Sep 26, 8:35 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant information through google.

Re: how to search multiple textfiles ?

2008-09-26 Thread George Sakkis
On Sep 26, 9:35 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant information through google.

Re: how to search multiple textfiles ?

2008-09-26 Thread M�ta-MCI (MVP)
Hi! On Windows, you can use the (standard) command findstr Example: findstr /n /s /I strsearched *.py @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: how to search multiple textfiles ?

2008-09-26 Thread Paul Rubin
Stef Mientki [EMAIL PROTECTED] writes: Does anyone know of a search library that performs this task fast ? You mean you want a Python search engine (with inverted indexes and all that)? Try: nucular.sf.net -- http://mail.python.org/mailman/listinfo/python-list

Re: how to search multiple textfiles ?

2008-09-26 Thread Sean DiZazzo
On Sep 26, 6:35 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant information through google.

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-26 Thread Stef Mientki
Mike Driscoll wrote: On Sep 26, 8:35 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant