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
GridLayouton Android to makes less JNI calls. The result is around 30% time gained on averageGridLayout