xor: how come so slow?

Paul Rubin http
Fri Oct 17 10:34:53 CEST 2008

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


> 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