xor: how come so slow?

Paul Rubin http
Fri Oct 17 04:34:53 EDT 2008


Michele <michele at nectarine.it> writes:
> I suppose that ord() and char() are the main problems 

yes

> How should I decrease the execution time? 

See http://nightsong.com/phr/crypto/p3.py which deals with
the same problem by using the array module to do the xor's
32 bits at a time.



More information about the Python-list mailing list