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

[GLUTEN-5890][Core] Enhance jni signature with a more readable way #5888

Closed
wants to merge 7 commits into from

Conversation

Donvi
Copy link
Contributor

@Donvi Donvi commented May 28, 2024

What changes were proposed in this pull request?

This is to optimize current const text in code like "([B)V", which means the jbooleanArray with void return.
So we currently have this way for optimize:
We use typeid to get the hash of the type and build a map from type_info.hash_code to the signature.

How was this patch tested?

This is test in ut, for all the value equals to previous values.
And check for all single value.

Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@@ -31,6 +31,11 @@
#include "utils/exception.h"

static jint jniVersion = JNI_VERSION_1_8;
static map<int, string> type2sig = buildTypeMapping();
Copy link
Contributor

@Yohahaha Yohahaha May 28, 2024

Choose a reason for hiding this comment

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

maybe use constexpr?

@zhli1142015 zhli1142015 changed the title Enhance jni signature with a more readable way [GLUTEN-5890][Core] Enhance jni signature with a more readable way May 28, 2024
Copy link

#5890

Copy link

github-actions bot commented Aug 4, 2024

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale stale label Aug 4, 2024
Copy link

This PR was auto-closed because it has been stalled for 10 days with no activity. Please feel free to reopen if it is still valid. Thanks.

@github-actions github-actions bot closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants