Skip to content

Commit

Permalink
delete output buffer, decrease read buffer by 50%
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Nov 6, 2024
1 parent 112da3c commit 4f65c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/spatialjoin/Sweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ void Sweeper::flush() {
throw std::runtime_error(ss.str());
}

delete[] _outBuffer;

_obufpos = 0;

_pointCache.flush();
Expand Down
2 changes: 1 addition & 1 deletion src/spatialjoin/Sweeper.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ struct SweeperCfg {
};

// buffer size _must_ be multiples of sizeof(BoxVal)
static const ssize_t BUFFER_S = sizeof(BoxVal) * 64 * 1024 * 1024;
static const ssize_t BUFFER_S = sizeof(BoxVal) * 64 * 1024 * 512;

static const size_t BUFFER_S_PAIRS = 1024 * 1024 * 10;

Expand Down

0 comments on commit 4f65c01

Please sign in to comment.