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

Shane Hathaway shane at hathawaymix.org
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 (http://psyco.sourceforge.net/) 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. :-)

Shane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dict-words3.py
Type: text/x-python
Size: 560 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060320/fab80d7d/attachment.py 


More information about the PLUG mailing list