Sergey, I’m a bit puzzled by the fact that your profile contains traces of Cython cdef functions. They shouldn’t be visible to the Cython profiler. Would you mind sharing the script that you profiled (or something equivalent, but then with another profile)?
Cheers Christoph
smime.p7s
Description: S/MIME cryptographic signature