New results from "dictionary word count" programs...

Shane Hathaway shane at
Mon Mar 20 17:45:36 MST 2006

Shane Hathaway wrote:
> Thanks, but the credit goes to the people who have optimized Python 
> dictionaries so well.  Sometimes I wish such optimized code were 
> available in plain C/C++.
> There's still more fine tuning possible.  I've attached a version that 
> shaves another second from the kjv100 test.

Then, install psyco ( and run the attached 
script.  I measure 4.9 seconds, which could put the Python + Psyco 
version in 1st place, at least for a while. :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-python
Size: 560 bytes
Desc: not available
Url : 

More information about the PLUG mailing list