Crates.io | addressable-pairing-heap |
lib.rs | addressable-pairing-heap |
version | 0.2.0 |
source | src |
created_at | 2017-02-26 01:01:02.974999 |
updated_at | 2017-02-26 15:00:15.068806 |
description | An addressable pairing heap implementation. |
homepage | |
repository | https://github.com/Robbepop/addressable-pairing-heap |
max_upload_size | |
id | 8684 |
size | 25,722 |
An addressable pairing heap implementation for Rust.
Allows to efficiently store elements associated with a key and access them via handles.
Handles to elements make it possible to query and edit elements stored in the PairingHeap
.
Documentation: link
crates.io: link
Benchmarks show that the current implementation suffers from performance issues that have yet to be fixed:
test bench::binary_heap_clone ... bench: 27,409 ns/iter (+/- 1,958)
test bench::binary_heap_pop ... bench: 3,227,855 ns/iter (+/- 35,525)
test bench::binary_heap_pop_bigpod ... bench: 17,386,429 ns/iter (+/- 85,175)
test bench::binary_heap_push ... bench: 1,522,285 ns/iter (+/- 39,222)
test bench::binary_heap_push_bigpod ... bench: 10,600,908 ns/iter (+/- 226,227)
test bench::pairing_heap_clone ... bench: 1,713,716 ns/iter (+/- 43,337)
test bench::pairing_heap_pop ... bench: 11,255,949 ns/iter (+/- 209,302)
test bench::pairing_heap_pop_bigpod ... bench: 26,683,916 ns/iter (+/- 136,507)
test bench::pairing_heap_push ... bench: 2,644,503 ns/iter (+/- 34,863)
test bench::pairing_heap_push_bigpod ... bench: 10,997,608 ns/iter (+/- 161,914)