Skip to content

Conversation

promag
Copy link
Contributor

@promag promag commented May 7, 2019

Remove unnecessary UniValue copies. Not sure if this change is exhaustive without changing UniValue or if there is a way to detect that.

A followup is to add move semantics to UniValue and remove some unnecessary members of UniValue.

This work is related to #15925.

@jgarzik
Copy link
Contributor

jgarzik commented May 7, 2019

UniValue constructor improvements welcomed... a version 2.0 that ditches old APIs (no impact on bitcoin) is scheduled, fwiw.

@practicalswift
Copy link
Contributor

Concept ACK

@Empact
Copy link
Contributor

Empact commented May 7, 2019

Concept ACK - some NullUniValue changes could be scripted to be verifiably consistent and comprehensive

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 19, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16251 (Improve signrawtransaction error reporting by ajtowns)
  • #16240 (JSONRPCRequest-aware RPCHelpMan by kallewoof)

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.

laanwj added a commit that referenced this pull request Jul 8, 2019
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
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 9, 2019
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
@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 9, 2019

Needs rebase

@promag promag closed this Jul 28, 2019
@promag promag deleted the 2019-05-copy-univalue branch July 28, 2019 22:12
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 4, 2021
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 4, 2021
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants