Commit graph

466 commits

Author SHA1 Message Date
Joel Wejdenstål f2d248eb59 v6.1.0 2024-09-05 13:20:13 +02:00
Gnome! da6ac5eab3
Add typesize::TypeSize implementation for DashMap/DashSet (#308) 2024-09-05 13:18:29 +02:00
Joel Wejdenstål 633aadbd81 v6.0.1 2024-06-24 15:48:14 +02:00
Joel Wejdenstål d5c8be6213 add shrink_to_fit test 2024-06-24 15:45:42 +02:00
Joel Wejdenstål 488dbfa908
fix deadlock in shrink_to_fit (#305) 2024-06-24 15:43:23 +02:00
Joel Wejdenstål 458238c114 v6.0.0 2024-06-18 16:30:20 +02:00
Joel Wejdenstål 1e3df1aa8e v6.0.0-rc.1 2024-06-18 01:30:37 +02:00
Joel Wejdenstål bdb86b03b4 Merge branch 'arthurprs-small-optimizations' 2024-06-18 01:07:21 +02:00
Joel Wejdenstål 4cdfc396a3 fix: merge errors 2024-06-18 01:06:07 +02:00
Joel Wejdenstål 74b34f836d Merge branch 'small-optimizations' of github.com:arthurprs/dashmap into arthurprs-small-optimizations 2024-06-18 00:49:23 +02:00
Nick 551453363e
Allow map_in_place to be called then the callee is already panicking. (#300)
- Forget the abort on panic once we know the closure did not panic.

Update util.rs
2024-06-18 00:38:46 +02:00
Josh Triplett 4be6f572cb
Re-export Entry types at top level (#302)
This makes it easy to `use dashmap::{DashMap, Entry}` rather than
requiring `dashmap::mapref::entry::Entry`.

This also makes it convenient to use `dashmap::Entry` as a qualified
type, in code that has other types named `Entry`.
2024-06-18 00:37:27 +02:00
Conrad Ludgate 92d64ba78c
cache-align the shards to improve throughput (#303)
* cache-align the shards to improve throughput

* fmt

* fix ci

* fix features
2024-06-18 00:36:51 +02:00
Arthur Silva 0f95f5932e Replace internal hashtable with hashbrown RawTable 2023-10-24 10:54:59 +02:00
Joel Wejdenstål 626b98dab3
v5.5.3 2023-08-29 23:13:21 +02:00
Joel 1e7efe5843
bump msrv to 1.65 (#279) 2023-08-29 23:12:11 +02:00
Joel Wejdenstål eff796d46b
v5.5.2 2023-08-29 13:17:51 +02:00
Joel Wejdenstål febc45dc62
Revert "Only hash keys once, taking advantage of hashbrown raw entry api (#259)"
This reverts commit 3448b6f070.
2023-08-29 13:17:03 +02:00
Joel Wejdenstål dfb7b9af33
v5.5.1 2023-08-22 02:06:11 +02:00
Joel Wejdenstål 3b26d70d2f
commit lockfile 2023-08-22 02:05:50 +02:00
Joel Wejdenstål 71a1dc6cd8
rename toolchain file 2023-08-22 02:01:56 +02:00
Joel Wejdenstål 8364d3e48e
fix lint 2023-08-22 02:00:33 +02:00
Arthur Silva 3448b6f070
Only hash keys once, taking advantage of hashbrown raw entry api (#259) 2023-08-22 01:57:35 +02:00
Joel Wejdenstål ea4ea24a63
v5.5.0 2023-07-11 06:11:45 +02:00
Joel 018f0a1671
assert that the shard count is not 1 (#273)
* assert that the shard count is not 1

* lint
2023-07-11 05:39:27 +02:00
Joel Wejdenstål 6616a8d28c
fmt 2023-07-11 05:30:00 +02:00
Tobias Kahlert 3b418466ed
Entry insert (#226)
* added Entry::insert_entry

* added Entry::insert
2023-07-11 05:29:24 +02:00
Amin Yahyaabadi 079faeb02b
feat: implement Display and AsRef for MappedRef (#261) 2023-07-11 05:24:05 +02:00
Jan dcc97f8ddb
Implement Serialize for reference types (#264) 2023-07-11 05:21:26 +02:00
Joel 4c7568cce6
add support for arbitrary (#272) 2023-07-11 05:20:05 +02:00
Joel d36311e634
update deps & toolchain to stable-1.64 (#271) 2023-07-11 04:56:54 +02:00
Joel 7f9522c528
fmt (#251) 2023-01-20 08:08:52 +01:00
Arash Sahebolamri 8a0149d31b
Add shards_mut() and into_shards() to DashMap and shards() to ReadOnlyView (#237) 2023-01-20 08:04:58 +01:00
George 83a2cf46e0
Added optional feature to enable inline in hashbrown crate. (#249) 2023-01-20 08:02:09 +01:00
Fointard 0b2a2269b2
fix: typo in lib.rs (#229) 2022-10-09 13:57:57 +02:00
Joel Wejdenstål 4fd07038a1
v5.4.0 2022-08-30 20:12:48 +02:00
Joel Wejdenstål f27dba3062
fmt 2022-08-30 20:09:31 +02:00
Joel Wejdenstål 342011296c
upgrade deps 2022-08-30 20:09:09 +02:00
Tom Karwowski d1f58eaf48
feat: add ReadOnlyView::par_iter() and ReadOnlyView::into_par_iter() (#223) 2022-08-30 20:08:29 +02:00
Tom Karwowski 9deeb37ccb
feat: memoize default shard amount (#222)
Use once_cell crate to memoize the value.
This doesn't add any new dependencies, as once_cell was already a subdependency. Additionally it was merged into std in nighlty and awaiting stabilization.
2022-08-30 20:05:07 +02:00
Tom Karwowski 030671060f
feat: add try_reserve method (#221) 2022-08-30 20:04:31 +02:00
Wolf Thomsen 459db7ac6f
Fix small typo in lib.rs module docstring (#209) 2022-06-06 14:09:52 +02:00
Joel dd7164dfef
Delete table.rs 2022-06-06 14:07:11 +02:00
Joel Wejdenstål 4b63e98814
Release v5.3.4 2022-05-28 13:20:30 +02:00
Joel 3236196d01
Use a proper lock implementation (#214)
* use a proper but reentrant safe lock impl

* impl downgrade
2022-05-28 13:19:37 +02:00
Konrad Borowski 5fbb68f188
Set rust-version to 1.59 (#210)
This crate uses available_parallelism which was introduced
in Rust 1.59.
2022-05-28 12:58:00 +02:00
Joel Wejdenstål 270612e3f9
Release v5.3.3 2022-05-02 17:55:25 +02:00
Joel Wejdenstål c162b21b6c
Revert "Hash keys once (#194)"
This reverts commit 3d315aa7a7.
2022-05-02 17:55:05 +02:00
Joel Wejdenstål 9c7cdc3370
Release v5.3.2 2022-04-30 23:23:31 +02:00
Vilgot Fredenberg f8ea0307a5
Tune hashbrown feature set (#205)
Removes the transient dependency on `ahash`.
2022-04-30 23:22:48 +02:00