Skip to content

Conversation

@c8e4
Copy link
Contributor

@c8e4 c8e4 commented Dec 14, 2025

Benchmark Results: Safe vs Unsafe Decode

Address Type Safe Unsafe Speedup
P2PK 1.46 µs 1.23 µs ~16% faster
P2SH 1.07 µs 0.88 µs ~17% faster
P2S Long 51.2 µs 51.3 µs ~same

Key Insights

  • Short addresses (P2PK, P2SH): Skipping checksum validation gives ~16-17% speedup
  • Long addresses (P2S): Base58 decoding dominates (~99% of time), so checksum validation overhead is negligible.

@c8e4 c8e4 force-pushed the c8/feat/address-codec branch 4 times, most recently from 462cf96 to 757cb07 Compare December 14, 2025 23:50
@c8e4 c8e4 force-pushed the c8/feat/address-codec branch from 9e76b15 to 63061f9 Compare December 14, 2025 23:54
@c8e4 c8e4 force-pushed the c8/feat/address-codec branch from 63061f9 to 9b481d8 Compare December 14, 2025 23:57
@c8e4 c8e4 changed the title DRAFT: feat/address codec feat: address codec Dec 14, 2025
@c8e4 c8e4 marked this pull request as ready for review December 14, 2025 23:59
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.

1 participant