-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
perf(android): gridlayout with less JNI calls #10402
Conversation
@farfromrefug possible to peek at the failing android tests? I merged latest and also rebuild the ui-mobile-base widgets (aka, TNSWidgets) since this has a .java change on it) and seems we have the following failing tests with these changes:
Link to test run here: https://github.com/NativeScript/NativeScript/actions/runs/9719521521/job/26829475734?pr=10402 |
@NathanWalker will take a look |
@NathanWalker i did fix some tests. now i am facing a dilemma. Some tests like this one https://github.com/Akylas/NativeScript/blob/b9d5ba1c53987a7bbc3a8430b327c96dac03eb8c/apps/automated/src/ui/layouts/grid-layout-tests.ts#L372 are still failing. The reason is that before my PR on the JS side _cols and _rows were actually native objects modified from the native side ( |
Thanks for explaining, I think that’d be okay 👍 |
@NathanWalker should be good now |
A rewrite of
GridLayout
on Android to makes less JNI calls. The result is around 30% time gained on averageGridLayout