Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Apr 21, 2012

Pull request #562 was rejected because it introduced a new ToHex function with a different, potentially less safe interface.

This pull request gives most of the speed-up (~30x on my CPU) of @JoelKatz his patch but rolls it into the current HexStr function. See the following benchmark results (made using https://gist.github.com/2439041).

Testing HexStrOld (1000000 iterations)
-> 14120.0 ms
Testing HexStrNew (1000000 iterations)
-> 470.0 ms
Testing ToHex (1000000 iterations)
-> 100.0 ms

It also adds two tests for HexStr: testing HexStr for the empty string and the function that takes a std::vector.

@jgarzik
Copy link
Contributor

jgarzik commented Apr 21, 2012

ACK

2 similar comments
@sipa
Copy link
Member

sipa commented Apr 21, 2012

ACK

@gavinandresen
Copy link
Contributor

ACK

sipa added a commit that referenced this pull request Apr 21, 2012
Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
@sipa sipa merged commit 7dbe393 into bitcoin:master Apr 21, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
@laanwj laanwj deleted the 2012_04_hexstr branch April 9, 2014 14:14
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
* Added net logging messages in main.cpp

* Added logging for trigger removal

* Improved log message for CGovernanceManager::UpdatedBlockTip

* Improved log messages in CGovernanceManager::UpdateCachesAndClean

* Added more logging to CGovernanceTriggerManager

* Check vote validity before pushing inventory during sync

* Add triggers to map after loading governance.dat file
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 22, 2019
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Dec 25, 2019
48a4a3c [Bug] Coded properly the URI from file read.. (furszy)

Pull request description:

  Re coded the URI from file read. Can be easily tested parsing a file with the following text pattern:
  `pivx:%address%?amount=%number%?label=%text%?message=%text%`

  About the code that was here before, really no comments..

  This solves bitcoin#1103

ACKs for top commit:
  Warrows:
    ACK 48a4a3c
  random-zebra:
    utACK 48a4a3c

Tree-SHA512: 2597ef7db91c2eed012d2ec27dc6192ac82e383392254ae8cd301546ebadd661b8316e807dd8c24944614aa1916d4ff7f79b94f53c8c6d141ceef8d51bb93610
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants