New results from "dictionary word count" programs...
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. :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 560 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060320/fab80d7d/attachment.py
More information about the PLUG