-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs-storage
implemented trait for conflict resolution
#26
Conversation
* Bump arklib version * Added tokio to deal with futures * Updating the index when links are added * Update GitHub Actions --------- Co-authored-by: Alvi Hysa <[email protected]>
Signed-off-by: Tarek <[email protected]>
Signed-off-by: Tarek <[email protected]>
The branch `ark-rust_hot_fix` contains a hot fix where we use the same commit specified when writing `ark-cli` but with pinning `image` crate to the correct version so that `ark-rust` can compile This is just a hot fix. `arklib` shouldn't be even a dependency of any `ark-rust` crate. See #15 for more information Signed-off-by: Tarek <[email protected]>
Signed-off-by: Pushkar Mishra <[email protected]>
Signed-off-by: Tarek <[email protected]>
Signed-off-by: Tarek <[email protected]>
Signed-off-by: Tarek <[email protected]>
Benchmark for b6a7374Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
fs-storage/src/file_storage.rs
Outdated
|
||
file_storage.set("key1".to_string(), "value1".to_string()); | ||
assert_eq!(file_storage.is_storage_updated().unwrap(), false); | ||
//todo: we need to add 1ms delays to make the test pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps I was too eager in making set
immediately sync the file system. It'll be more useful to allow the library user to decide whether they want to write to disk immediately after set
ting a value or use a different strategy like batching writes.
Once write_fs
is moved out of set
this test will also be valid.
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for 639d612Click to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for b19bd6aClick to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for 47f2e17Click to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for fcadd60Click to view benchmark
|
Signed-off-by: pushkarm029 <[email protected]>
Benchmark for e6b12bdClick to view benchmark
|
Last change:
|
Thanks @Pushkarm029 and @twitu as well as @tareknaser! Great team work 👍 |
Benchmark for 2058a72Click to view benchmark
|
Working on:
fs-storage
: Conflicts resolution (Monoid/CRDTs) #19This PR introduces
merge_from
function that merges entries of local mapping and another one. Value with clashing keys are merged using the Monoid instance provided by the storage.