mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
use mmap on 64-bit machines to speed-up reads; small build fixes
This commit is contained in:
@@ -205,7 +205,7 @@ class BlockConstructor: public Constructor {
|
||||
block_size_ = block_data.size();
|
||||
char* block_data_copy = new char[block_size_];
|
||||
memcpy(block_data_copy, block_data.data(), block_size_);
|
||||
block_ = new Block(block_data_copy, block_size_);
|
||||
block_ = new Block(block_data_copy, block_size_, true /* take ownership */);
|
||||
return Status::OK();
|
||||
}
|
||||
virtual size_t NumBytes() const { return block_size_; }
|
||||
|
||||
Reference in New Issue
Block a user