Home

Awesome

rust-array-stump

crates.io Build Status codecov License:MIT

A data structure mixing dynamic array and sorted set semantics.

Algorithm in 10 seconds

Algorithm Visualization

Algorithmic notes:

Use cases

rust-array-stump has been developed as potential core data structure for the sweep line algorithm in rust-geo-booleanop. It may be applicable in other cases with similar properties:

Some design choices currently optimize for use in rust-geo-booleanop, but they may be lifted if need be:

Benchmarks

Benchmarks... As always take with a grain of salt. A few general notes:

Comparison data structures:

Insert (random)

<details> <summary>Description</summary> <br> </details>

image

Insert (ascending)

<details> <summary>Description</summary> <br> </details> <details> <summary>Plots</summary>

image

</details>

Insert (descending)

<details> <summary>Description</summary> <br> </details> <details> <summary>Plots</summary>

image

</details>

Remove (random)

<details> <summary>Description</summary> <br> </details>

image

Find (random)

<details> <summary>Description</summary> <br> </details>

image

Find (recent)

<details> <summary>Description</summary> <br> </details> <details> <summary>Plots</summary>

image

</details>