mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 10:20:44 -04:00
Improve cryptonote (block and tx) binary read performance
This commit is contained in:
parent
0a1ddc2eff
commit
08e4497c6e
29 changed files with 229 additions and 230 deletions
|
@ -37,9 +37,7 @@ BEGIN_INIT_SIMPLE_FUZZER()
|
|||
END_INIT_SIMPLE_FUZZER()
|
||||
|
||||
BEGIN_SIMPLE_FUZZER()
|
||||
std::stringstream ss;
|
||||
ss << std::string((const char*)buf, len);
|
||||
binary_archive<false> ba(ss);
|
||||
binary_archive<false> ba{{buf, len}};
|
||||
rct::Bulletproof proof = AUTO_VAL_INIT(proof);
|
||||
::serialization::serialize(ba, proof);
|
||||
END_SIMPLE_FUZZER()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue