You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[VL] Separate each jni wrapper to different files #2845
JniWrapper.cc is too large and may be larger in the future, we could separate it into sub dirs when some stateful static variables be removed, and get benefits from readability and UT.
I think make jni file name align with java class is good. The VexloJniWrapper should also be taken into account. e.g., The java class PlanEvaluatorJniWrapper has several jni methods that map to both JniWrapper and VexloJniWrapper. What's the really difference between VexloJniWrapper and JniWrapper ?
Activity
Yohahaha commentedon Sep 11, 2023
After issue 3077 completed, I will separate current JniWrapper.cc into different sub-dir, it will looks like below:
Any suggestions? @jinchengchenghh @zhztheplayer @rui-mo
zhztheplayer commentedon Sep 12, 2023
This sort of refactor is needed.
The thing is that we should find a proper time to apply the change, since it may easily conflict with other pending PRs.
Yohahaha commentedon Sep 12, 2023
Good point, I prefer do the refactor in weekend, before that, let's discuss the structure we expected.
Yohahaha commentedon Sep 12, 2023
Also cc @ulysses-you @FelixYBW @zhouyuan
ulysses-you commentedon Sep 12, 2023
I think make jni file name align with java class is good. The
VexloJniWrappershould also be taken into account. e.g., The java classPlanEvaluatorJniWrapperhas several jni methods that map to bothJniWrapperandVexloJniWrapper. What's the really difference betweenVexloJniWrapperandJniWrapper?zhztheplayer commentedon Sep 13, 2023
PlanEvaluatorJniWrapper -> VeloxJniWrapper
Such mappings should be finally eliminated IIUC. We already had
BackendandExecutionCtxas the APIs across backends.