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

feat: unify json-abi params impls #136

Merged
merged 4 commits into from
Jun 22, 2023
Merged

feat: unify json-abi params impls #136

merged 4 commits into from
Jun 22, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jun 21, 2023

Motivation

Having an intermediary untagged enum increases both complexity and runtime overhead (~10% on the seaport bench).

This PR also lays the groundwork for a possible future "borrowed" JsonAbi implementation, where all possible types are marked as #[serde(borrow)] (either they are Cows<'a, _> or &'_ str) and is used for the base serde impls (the owned will just convert from and into this type).

@prestwich wdyt

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich
Copy link
Member

Yes. It is good

Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giving you carte blanche to continue iterating or merge it in 🖖

@DaniPopes
Copy link
Member Author

I still have to think about it, I'll open an issue and merge this for now

@DaniPopes DaniPopes merged commit 64e4524 into main Jun 22, 2023
@DaniPopes DaniPopes deleted the dani/json-params branch June 22, 2023 07:21
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