node: Some performance improvements for storage
- Try to improve performance of repository open
- node: Use inventory cache for checking missing
5 files changed
+80
-14
8e541dcf
→
25c6660a
modified radicle-node/src/bounded.rs
@@ -159,7 +159,7 @@ impl<T, const N: usize> BoundedVec<T, N> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-node/src/service.rs
@@ -1431,6 +1431,9 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1448,22 +1451,18 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/storage.rs
@@ -402,6 +402,9 @@ impl<V> Deref for Remote<V> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -414,6 +417,9 @@ pub trait ReadStorage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -658,6 +664,7 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -683,6 +690,13 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/storage/git.rs
@@ -5,7 +5,7 @@ pub mod transport;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -72,6 +72,23 @@ impl<'a> TryFrom<git2::Reference<'a>> for Ref {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -82,6 +99,7 @@ pub struct Storage {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -103,6 +121,15 @@ impl ReadStorage for Storage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -374,7 +401,14 @@ pub enum Validation {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/test/storage.rs
@@ -56,8 +56,21 @@ impl MockStorage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -79,6 +92,12 @@ impl ReadStorage for MockStorage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|