crossbario / autobahn-python

WebSocket and WAMP in Python for Twisted and asyncio
https://crossbar.io/autobahn
MIT License
2.48k stars 768 forks source link

py_eth_sig_utils: excessive startup time #1421

Open om26er opened 3 years ago

om26er commented 3 years ago

On a slower system like a raspberry pi 3, importing something from py_eth_sig_utils takes close to 15 seconds. Not sure what's taking that time, but seems cryptography libraries are somewhat doing their computation on import time.

oberstet commented 3 years ago

importing something from py_eth_sig_utils takes close to 15 seconds

so a plain top level import import py_eth_sig_utils already takes that much time?

oberstet commented 3 years ago

see also similar issue https://github.com/crossbario/autobahn-python/issues/1420

oberstet commented 3 years ago

we could create an empty node config, pip install vmprof and then start the node using crossbarfx start --vmprof --shutdownafter 10. this will produce a vmprof profile which can be analyzed ..

unfortunately, this doesn't work on arm64 because of https://github.com/crossbario/crossbar/issues/1828