Search code examples
javaandroidperformancelazarus

Lazarus Pascal on Android - performance


Although a long-time developer, I've never seriously used an Android device - let alone programming one. So I'm new to this platform.

I'm looking at Lazarus for Android and found this link that has the following lines:

LCL-CustomDrawn-Android utilizes a minimal Java application which communicates with our Pascal library and sends all events to it and also obeys commands from it.

This raises a bunch of question for me.

  1. In other words, is Lazarus running on the Android like a Windows app running on Wine (for Linux)?
  2. If Java has to get in the way, wouldn't it be faster to directly run Java code without creating Lazarus/Pascal code?

Thanks!


Solution

  • In other words, is Lazarus running on the Android like a Windows app running on Wine (for Linux)?

    No. While there is a light preference for Java, native is quite common on Android, and they all need to connect to OS services via a Java skeletal application.

    If Java has to get in the way, wouldn't it be faster to directly run Java code without creating Lazarus/Pascal code?

    No. The code that runs is native, only GUI events trigger some minimal java overhead.