-
Notifications
You must be signed in to change notification settings - Fork 56
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
More edge property filters #1783
Conversation
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.
Couple minor points/questions but otherwise LGTM
) -> Result<Option<usize>, GraphError> { | ||
match self.get_id(prop) { | ||
Some(id) => { | ||
let existing_dtype = self.get_dtype(id).unwrap(); |
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.
I know this cannot fail, but worth turning the unwrap into 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.
Can turn it into an expect, if this is ever not true, we want shit to blow up!
352aabd
to
3e1d621
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: 3dd5eeb | Previous: 5f0ae40 | Ratio |
---|---|---|---|
lotr_graph_subgraph_10pc/active edge |
462 ns/iter (± 37 ) |
225 ns/iter (± 8 ) |
2.05 |
This comment was automatically generated by workflow using github-action-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.
LGTM
What changes were proposed in this pull request?
ne
,ge
,le
Why are the changes needed?
we need to filter properties
Does this PR introduce any user-facing change? If yes is this documented?
yes, more methods with python doc strings
How was this patch tested?
needs more tests
Are there any further changes required?
more tests