crossbario / crossbario/autobahn-python

py_eth_sig_utils: excessive startup time

Open
#1,421 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-investigation XBR
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by profiling the import path for py_eth_sig_utils on a slower system such as a Raspberry Pi 3, paying particular attention to cryptography libraries initialized during import. Done would mean identifying the import-time bottleneck and reducing the nearly 15-second startup delay, but the issue names no source file or test to guide the investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.