Skip to content
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

Merged
merged 35 commits into from Jul 19, 2023
Merged

Implement grin interface for flex #3010

merged 35 commits into from Jul 19, 2023

Conversation

liulx20
Copy link
Collaborator

@liulx20 liulx20 commented Jul 14, 2023

What do these changes do?

Implement grin interface for flex.

Related issue number

.

typedef std::vector<gs::label_t> GRIN_VERTEX_TYPE_LIST_T;

typedef struct GRIN_VERTEX_PROPERTY_T {
std::string name;
Copy link
Collaborator

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.

luoxiaojian
luoxiaojian previously approved these changes Jul 19, 2023
}
auto& table = _g->get_vertex_table(plabel);
auto col =
std::dynamic_pointer_cast<gs::IntColumn>(table.get_column_by_id(pid));
Copy link
Collaborator

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.

Copy link
Collaborator

@andydiwenzhu andydiwenzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@liulx20 liulx20 merged commit 99586b1 into alibaba:main Jul 19, 2023
25 checks passed
sighingnow added a commit that referenced this pull request Jul 26, 2023
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 <linzhu.ht@alibaba-inc.com>
zhanglei1949 pushed a commit to zhanglei1949/GraphScope that referenced this pull request Jul 28, 2023
…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 <linzhu.ht@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants