-
Notifications
You must be signed in to change notification settings - Fork 55
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
Refactor Node Temporal properties #1897
Conversation
a4d4cde
to
ae17444
Compare
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.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2
.
Benchmark suite | Current: 2776818 | Previous: 250736e | Ratio |
---|---|---|---|
lotr_graph_window_50_layered/iterate nodes |
12278 ns/iter (± 14 ) |
6044 ns/iter (± 3 ) |
2.03 |
This comment was automatically generated by workflow using github-action-benchmark.
21706cf
to
0110c82
Compare
3100d43
to
eda03ac
Compare
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.
- Some minor things
- I am worried that materialise on a windowed persistent graph is loosing property values
raphtory/src/core/storage/mod.rs
Outdated
pub struct EntryMut<'a, NS: 'a> { | ||
i: usize, | ||
guard: parking_lot::RwLockWriteGuard<'a, Vec<T>>, | ||
guard: NS, | ||
_pd: PhantomData<&'a ()>, | ||
} |
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.
Would it have been easier to have separate structs for the ref and owned variants?
@@ -56,7 +56,7 @@ impl From<&PyTemporalProperties> for PyTemporalPropsCmp { | |||
value | |||
.histories() | |||
.into_iter() | |||
.map(|(k, v)| (k, v.into())) | |||
.filter_map(|(k, v)| (v.len() > 0).then(|| (k, v.into()))) |
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.
we should discuss the semantics
e60648c
to
2ea6bcf
Compare
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.
LGTM
What changes were proposed in this pull request?
For nodes separate edge originating timestamps from temporal properties originating timestamps
Why are the changes needed?
Correctness
Does this PR introduce any user-facing change? If yes is this documented?
API changes
How was this patch tested?
Tests
Are there any further changes required?
Yes, design a History struct