Skip to content

Commit

Permalink
Apply a limit to the chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
nokonoko1203 committed Dec 16, 2024
1 parent 8177220 commit d5b4aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ fn main() {

let tile_id_iter = RunFileIterator::new(run_files);

let config = kv_extsort::SortConfig::default().max_chunk_bytes(1024 * 1024 * 1024);
let config = kv_extsort::SortConfig::default().max_chunk_bytes(max_memory_mb_bytes);
let sorted_iter = kv_extsort::sort(
tile_id_iter.map(|(key, point)| {
let encoded_point = bitcode::encode(&point);
Expand Down

0 comments on commit d5b4aec

Please sign in to comment.