-
Notifications
You must be signed in to change notification settings - Fork 453
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
Conversation
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?
See also: |
@@ -31,6 +31,11 @@ | |||
#include "utils/exception.h" | |||
|
|||
static jint jniVersion = JNI_VERSION_1_8; | |||
static map<int, string> type2sig = buildTypeMapping(); |
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.
maybe use constexpr
?
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. |
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. |
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.