Skip to content

add orjson#53

Closed
poiuty wants to merge 1 commit into
spesmilo:masterfrom
poiuty:master
Closed

add orjson#53
poiuty wants to merge 1 commit into
spesmilo:masterfrom
poiuty:master

Conversation

@poiuty

@poiuty poiuty commented Aug 17, 2020

Copy link
Copy Markdown

No description provided.

@smmalis37

Copy link
Copy Markdown
Contributor

Are there any benchmarks comparing orjson to the other options? Should it really be the preferred option in cases where more than 1 are present?

@poiuty

poiuty commented Aug 18, 2020

Copy link
Copy Markdown
Author

@smmalis37, https://github.com/ijl/orjson#performance

@JustinTArthur

Copy link
Copy Markdown
Collaborator

I have no issue with us supporting orjson as well, will run some benchmarks against typical Bitcoin block serialization. I've restarted the tests for this PR now that they're working again.

@JustinTArthur JustinTArthur self-requested a review October 12, 2020 02:44
Comment thread electrumx/lib/util.py
except ImportError:
import json

print("using", json.__name__)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you remove this print statement for now? It should eventually be a logger.debug from one of the modules responsible for environment on startup.

@smmalis37

Copy link
Copy Markdown
Contributor

Could the json-related note in https://github.com/spesmilo/electrumx/blob/master/docs/PERFORMANCE-NOTES also get updated?

@SomberNight

Copy link
Copy Markdown
Member

done in #372

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.

4 participants