Skip to content

Commit

Permalink
Modify the starting capacity of DisjointSet in order to avoid a lot o…
Browse files Browse the repository at this point in the history
…f mmap calls.
  • Loading branch information
mikispag committed Oct 25, 2017
1 parent 778a164 commit 6297f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callbacks/clusterizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl<T> DisjointSet<T>
where T: Clone + Hash + Eq
{
pub fn new() -> Self {
const CAPACITY: usize = 200000000;
const CAPACITY: usize = 1000000;
DisjointSet {
set_size: 0,
parent: Vec::with_capacity(CAPACITY),
Expand Down

0 comments on commit 6297f8e

Please sign in to comment.