[python-ldap] One vote for 3.x

Ilya Etingof ilya at glas.net
Tue Nov 29 16:08:13 CET 2011


Yes, pyasn1 is slow compared to C implementations. Off the top of my head,
my estimation is that pure encoding/decoding operations are 5-10 times slower
with pyasn1.

>> In the former case it might be easier and more robust to use pyasn1 than
>> ctypes. BTW, pyasn1 seems to already be used in python-ldap for LDAP Controls.
>
> I already considered that. But there are currently two reasons I'd stick to
> using the OpenLDAP C client libs:
>
> 1. Speed: It's definitely a difference decoding large search results compared
> to occasionally en-/decoding some LDAP controls. But off course this needs
> exact profiling.
>
> 2. Functionality: It will be much work to implement everything, especially the
> SASL stuff.


More information about the python-ldap mailing list