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

Some optimizations for JSON #3498

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Some optimizations for JSON #3498

wants to merge 5 commits into from

Conversation

toppk
Copy link

@toppk toppk commented Sep 24, 2024

What was wrong?

Closes #3496

How was it fixed?

This makes some modest changes to JSON, to squeeze out some spaces, get rid of some unnecessary object instantiation. added some test cases because JSONBaseProvider was tested, not AsyncJSONBaseProvider. The big issue I wanted to solve was to send text to websockets package, so the logging there would be in text, and not binary (see issue). But i didn't change Legacy for that, which still is bytes.

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

image

@toppk
Copy link
Author

toppk commented Sep 25, 2024

fwiw, i think there are some things in this PR that might want to be picked up here, like making the web3.providers.auto not circular importing on web3.providers, even if some of the other bits are not wanted.

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.

make json improvements
1 participant