-
Notifications
You must be signed in to change notification settings - Fork 442
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-2845][VL] Separate jni method into different files #3396
Conversation
This patch is ready, please help review, thanks! @zhztheplayer @ulysses-you @PHILO-HE |
Why do this? |
don't use a deep directory, we made this adjustment one year ago and added a rule in the cpp programming guide. |
Main purpose is split JniWrapper, I prefer talk design in issue. What the difference between |
Probably the change is too big to match the volume of improvement it brings. Let's hold it off until the time is ripe? To avoid blocking other's pending work. @Yohahaha What do you think? |
This patch is not urgent but needed, JniWrapper.cc already has 1372 lines, we need a big patch to split it and make jni layer more clean and readable. |
It is big but somewhat still organized. I think the complexity of maitaining it in future is basically predictable. I agree that this sort of change improves the code but we should consider about the cost of applying the change. More concretely, a considerable amount of rebasing actions will be needed in others' work if we merged the PR, also a lot of code lines' git author credit will be lost. So the cost of applying this change is high at the moment. |
Make sense for me. Thanks! |
I am closing this. Feel free to reopen when time is ripe. Thanks! |
Changes:
.cc
files, each new file's name is aligned with java file, only do movement without logic change. KeepnativeValidateWithFailureReason
in VeloxJniWrapper, will refactor in follow up patch.After this patch,
core
dir structure will like below: