Skip to content

Commit

Permalink
Merge pull request #64 from Cyborus04/master
Browse files Browse the repository at this point in the history
Fix typo in `ArcSwapOption::const_empty` documentation
  • Loading branch information
vorner authored Sep 19, 2021
2 parents 63bda3a + 8474db4 commit a8a3ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ impl<T, S: Strategy<Option<Arc<T>>>> ArcSwapAny<Option<Arc<T>>, S> {
}

impl<T> ArcSwapOption<T> {
/// A const-fn equilavent of [empty].
/// A const-fn equivalent of [empty].
///
/// Just like [empty], this creates an `None`-holding `ArcSwapOption`. The [empty] is, however,
/// more general ‒ this is available only for the default strategy, while [empty] is for any
Expand Down

1 comment on commit a8a3ddf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Track benchmarks

Benchmark suite Current: a8a3ddf Previous: 63bda3a Ratio
uncontended/load 21 ns/iter (± 0) 21 ns/iter (± 0) 1
uncontended/load_full 30 ns/iter (± 0) 30 ns/iter (± 0) 1
uncontended/load_many 46 ns/iter (± 0) 46 ns/iter (± 0) 1
uncontended/store 144 ns/iter (± 0) 147 ns/iter (± 0) 0.98
uncontended/cache 1 ns/iter (± 0) 1 ns/iter (± 0) 1
concurrent_loads/load 32 ns/iter (± 10) 32 ns/iter (± 10) 1
concurrent_loads/load_full 30 ns/iter (± 13) 37 ns/iter (± 17) 0.81
concurrent_loads/load_many 68 ns/iter (± 33) 65 ns/iter (± 28) 1.05
concurrent_loads/store 1382 ns/iter (± 1065) 997 ns/iter (± 719) 1.39
concurrent_loads/cache 1 ns/iter (± 0) 1 ns/iter (± 0) 1
concurrent_store/load 106 ns/iter (± 2) 107 ns/iter (± 6) 0.99
concurrent_store/load_full 141 ns/iter (± 14) 135 ns/iter (± 4) 1.04
concurrent_store/load_many 159 ns/iter (± 12) 165 ns/iter (± 8) 0.96
concurrent_store/store 1238 ns/iter (± 19) 1196 ns/iter (± 31) 1.04
concurrent_store/cache 1 ns/iter (± 0) 1 ns/iter (± 0) 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.