Closed MouhamadKawas closed 5 years ago
Specifics of build files are outside the scope of Djinni, which just generates source code which should behave like any other C++ source code built for the platform.
The one expected performance differential between platforms is the cost of passing data across JNI from Java <-> C++, which is more expensive than passing data from ObjC <-> C++ due to the memory model differences. If your application relies on high-frequency calls across the boundary, or repeated data copying across the boundary, that might be a place to look for performance impact.
Beyond that, you might consider joining the Slack community mentioned in the README to discuss your performance issues with other mobile C++ developers who may have suggestions.
Hi, I am using Djinni to generate a cross-platform core for Android and iOS
The iOS build is good and the performance is as expected. However, the Android performance is very slow compared to the iOS knowing that they are using the exact same code.
We have tried the Android build on the newest Android devices, Galaxy S8+ for example, and still the performance is very slow
I'm not sure if this is a Djinni related issue, but I only want to make sure that there are no issues in building the project.
Here is the .gyp file which we are using to build the iOS project
And here is the Android CmakeLists.txt file:
And here is the build.gradle file: