-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Avoid UniValue copy constructor #15974
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
Conversation
UniValue constructor improvements welcomed... a version 2.0 that ditches old APIs (no impact on bitcoin) is scheduled, fwiw. |
Concept ACK |
Concept ACK - some NullUniValue changes could be scripted to be verifiably consistent and comprehensive |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
91509ff bench: Benchmark blockToJSON (Kirill Fomichev) Pull request description: Related: - "getblock performance issue on verbosity" #15925 - "refactor: Avoid UniValue copy constructor" #15974 ACKs for top commit: laanwj: ACK 91509ff Tree-SHA512: e70b12cb31921c7527bde334f52f39776da698b6bbdb196079a8b68478c67585a5bd7bed7403f65166bd604f7ed60778c53dc064d743bb8368318a1283d1073e
91509ff bench: Benchmark blockToJSON (Kirill Fomichev) Pull request description: Related: - "getblock performance issue on verbosity" bitcoin#15925 - "refactor: Avoid UniValue copy constructor" bitcoin#15974 ACKs for top commit: laanwj: ACK 91509ff Tree-SHA512: e70b12cb31921c7527bde334f52f39776da698b6bbdb196079a8b68478c67585a5bd7bed7403f65166bd604f7ed60778c53dc064d743bb8368318a1283d1073e
Needs rebase |
91509ff bench: Benchmark blockToJSON (Kirill Fomichev) Pull request description: Related: - "getblock performance issue on verbosity" bitcoin#15925 - "refactor: Avoid UniValue copy constructor" bitcoin#15974 ACKs for top commit: laanwj: ACK 91509ff Tree-SHA512: e70b12cb31921c7527bde334f52f39776da698b6bbdb196079a8b68478c67585a5bd7bed7403f65166bd604f7ed60778c53dc064d743bb8368318a1283d1073e
91509ff bench: Benchmark blockToJSON (Kirill Fomichev) Pull request description: Related: - "getblock performance issue on verbosity" bitcoin#15925 - "refactor: Avoid UniValue copy constructor" bitcoin#15974 ACKs for top commit: laanwj: ACK 91509ff Tree-SHA512: e70b12cb31921c7527bde334f52f39776da698b6bbdb196079a8b68478c67585a5bd7bed7403f65166bd604f7ed60778c53dc064d743bb8368318a1283d1073e
Remove unnecessary
UniValue
copies. Not sure if this change is exhaustive without changingUniValue
or if there is a way to detect that.A followup is to add move semantics to
UniValue
and remove some unnecessary members ofUniValue
.This work is related to #15925.