-
Notifications
You must be signed in to change notification settings - Fork 450
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
Implement grin interface for flex #3010
Conversation
typedef std::vector<gs::label_t> GRIN_VERTEX_TYPE_LIST_T; | ||
|
||
typedef struct GRIN_VERTEX_PROPERTY_T { | ||
std::string name; |
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.
[future optimize] caching static schema-data in the graph handle would be a good practice to simplify the data structures for better performance. Please refer to the v6d implementation for caching.
} | ||
auto& table = _g->get_vertex_table(plabel); | ||
auto col = | ||
std::dynamic_pointer_cast<gs::IntColumn>(table.get_column_by_id(pid)); |
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.
Try to avoid dynamic_pointer_cast in get_value apis, based on the performance benchmark of grin-v6d, this can be 20-30 times slower. Instead, you can cache these columns as void* and then static_cast them back to the type you need in these apis.
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! Thanks!
The submodule was first introduced in #3010 and it should be removed before `git add -A` to gh-pages. Fixes https://github.com/alibaba/GraphScope/actions/runs/5665819421/job/15351324239 --------- Signed-off-by: Tao He <[email protected]>
…a#3056) The submodule was first introduced in alibaba#3010 and it should be removed before `git add -A` to gh-pages. Fixes https://github.com/alibaba/GraphScope/actions/runs/5665819421/job/15351324239 --------- Signed-off-by: Tao He <[email protected]>
What do these changes do?
Implement grin interface for flex.
Related issue number
.