Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies: remove bitstring #9020

Merged
merged 1 commit into from Apr 24, 2024
Merged

Conversation

SomberNight
Copy link
Member

@SomberNight SomberNight commented Apr 23, 2024

  • bitstring started depending on bitarray in version 4.1
    • that would mean one additional dependency for us (from yet another maintainer), which is not even pure python
  • we only use bitstring for bolt11-parsing
  • hence this PR rewrites the bolt11-parsing and removes bitstring as dependency
  • note: I benchmarked lndecode using this, and the new code performs better,
    taking around 80% time needed for old code (when using bitstring 3.1.9, pure python).
    Though the variance is quite large in both cases.

- `bitstring` started depending on `bitarray` in version 4.1 [0]
  - that would mean one additional dependency for us (from yet another maintainer), which is not even pure python
- we only use bitstring for bolt11-parsing
- hence this PR rewrites the bolt11-parsing and removes `bitstring` as dependency
- note: I benchmarked lndecode using [1], and the new code performs better,
  taking around 80% time needed for old code (when using bitstring 3.1.9, pure python).
  Though the variance is quite large in both cases.

[0]: https://github.com/scott-griffiths/bitstring/blob/95ee533ee4040b4480da1ead548eab2459e8e573/release_notes.txt#L108
[1]: spesmilo@d7597d9
@SomberNight SomberNight marked this pull request as ready for review April 24, 2024 14:21
@ecdsa ecdsa merged commit 2a4c5d9 into spesmilo:master Apr 24, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants