Skip to content

Commit

Permalink
make the read and write disk caches smaller. (Chia-Network#200)
Browse files Browse the repository at this point in the history
4 MiB -> 1 MiB. These are multiplied by the number of buckets.
  • Loading branch information
arvidn authored Mar 30, 2021
1 parent a614cee commit 48321e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ using namespace std::chrono_literals; // for operator""min;
#include "./util.hpp"
#include "bitfield.hpp"

constexpr uint64_t write_cache = 4 * 1024 * 1024;
constexpr uint64_t read_ahead = 4 * 1024 * 1024;
constexpr uint64_t write_cache = 1024 * 1024;
constexpr uint64_t read_ahead = 1024 * 1024;

struct Disk {
virtual uint8_t const* Read(uint64_t begin, uint64_t length) = 0;
Expand Down

0 comments on commit 48321e8

Please sign in to comment.