Re: [Tutor] Python: 27 times faster than bash

2010-10-29 Thread Sean Carolan
> Can we see a version of your script? How about just a couple snippets...there's no proprietary data but I want to be on the safe side.  The original script consisted of a bunch of functions similar to the one below.  When I first wrote this I didn't know how to use sed very well, so I used varia

[Tutor] Python: 27 times faster than bash

2010-10-28 Thread Sean Carolan
I rewrote a bash script that gathers data from a bunch of text files. The script uses grep, sed, and awk to parse the data and takes around 5.5 seconds to run. After rewriting the script in python, it now takes a little over 0.2 seconds to run. Thanks to those of you who helped me with some quest