sobering observation, python vs. perl

Ethan Furman ethan at stoneleaf.us
Thu Mar 17 12:21:51 EDT 2016


On 03/17/2016 09:08 AM, Charles T. Smith wrote:
> On Thu, 17 Mar 2016 10:52:30 -0500, Tim Chase wrote:

>> Not saying this will make a great deal of difference, but these two
>> items jumped out at me.  I'd even be tempted to just use string
>> manipulations for the isready aspect as well.  Something like
>> (untested)
>
> well, I don't want to forgo REs in order to have python's numbers be better....

The issue is not avoiding REs, but using Python's strengths and idioms. 
  Write the code in Python's style, get the same results, then compare 
the times.

If you posted the data file and exact results the rest of us could try, 
but as it is all we can do is offer ideas and you have test them.

--
~Ethan~




More information about the Python-list mailing list