Skip to content

Conversation

kderme
Copy link
Contributor

@kderme kderme commented Jul 7, 2021

The TxOut patterns for addresses that we use, do a silent deserialisation. Later we serialise addresses again to insert them in the db. We can avoid this round trip by keeping the initial serialised address

This can be optimised even further. Generic.renderAddress does another serialization before transforming to the bech32/base58 format. We could use the serialised address to avoid this. However the cardano-api doesn't make this too easy.

@kderme kderme force-pushed the kderme/address-round-trip branch from 735476d to 34b0714 Compare September 11, 2021 14:43
@kderme kderme marked this pull request as ready for review September 11, 2021 16:26
@kderme kderme requested a review from erikd as a code owner September 11, 2021 16:26
@kderme
Copy link
Contributor Author

kderme commented Sep 11, 2021

I've synced with and without the pr and found no differences on the tx_out table.

@erikd
Copy link
Contributor

erikd commented Oct 1, 2021

Pulled into #864 .

@erikd erikd closed this Oct 1, 2021
@erikd erikd deleted the kderme/address-round-trip branch October 1, 2021 04:44
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.

2 participants