-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* `MemoryReclaimPolicy` generic argument is added to the list variants `Singly` and `Doubly`. In the prior versions, all lists used `MemoryReclaimOnThredhold` as the memory reclaim policy. This policy is still the default policy. However, the user may prefer to use `MemoryReclaimNever`. * `MemoryReclaimNever` will make sure that the indices will always be valid. * `node_utilization` and `reclaim_closed_nodes` methods are exposed. This gives control to the the user to manually manage memory utilization. Note that these methods are crucial when `MemoryReclaimNever` is used.
- Loading branch information
1 parent
ae7e3d3
commit d807dab
Showing
11 changed files
with
870 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "orx-linked-list" | ||
version = "2.1.0" | ||
version = "2.2.0" | ||
edition = "2021" | ||
authors = ["orxfun <[email protected]>"] | ||
description = "An efficient and recursive singly and doubly linked list implementation." | ||
|
@@ -10,8 +10,8 @@ keywords = ["linked", "list", "vec", "array", "pinned"] | |
categories = ["data-structures", "rust-patterns"] | ||
|
||
[dependencies] | ||
orx-selfref-col = "1.2" | ||
orx-split-vec = "2.1" | ||
orx-selfref-col = "1.3" | ||
orx-split-vec = "2.3" | ||
|
||
[dev-dependencies] | ||
rand = "0.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.