Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POC] Remove Arc wrapping of keys and values in Vector and RedBlackTree #22

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions benches/rpds_red_black_tree_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 17,7 @@ use utils::BencherNoDrop;
use utils::iterations;

fn red_black_tree_map_insert(bench: &mut Bencher) -> () {
let limit = iterations(100_000);
let limit = iterations(10_000);

bench.iter_no_drop(|| {
let mut map = RedBlackTreeMap::new();
Expand All @@ -31,7 31,7 @@ fn red_black_tree_map_insert(bench: &mut Bencher) -> () {
}

fn red_black_tree_map_remove(bench: &mut Bencher) -> () {
let limit = iterations(100_000);
let limit = iterations(10_000);
let mut full_map = RedBlackTreeMap::new();

for i in 0..limit {
Expand All @@ -50,7 50,7 @@ fn red_black_tree_map_remove(bench: &mut Bencher) -> () {
}

fn red_black_tree_map_get(bench: &mut Bencher) -> () {
let limit = iterations(100_000);
let limit = iterations(10_000);
let mut map = RedBlackTreeMap::new();

for i in 0..limit {
Expand All @@ -65,7 65,7 @@ fn red_black_tree_map_get(bench: &mut Bencher) -> () {
}

fn red_black_tree_map_iterate(bench: &mut Bencher) -> () {
let limit = iterations(100_000);
let limit = iterations(10_000);
let mut map = RedBlackTreeMap::new();

for i in 0..limit {
Expand Down
4 changes: 2 additions & 2 deletions src/map/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 3,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Entry<K, V> {
pub key: K,
pub key: K,
pub value: V,
}

Expand Down
Loading