开发者

How much overhead does Monodroid add to an app

开发者 https://www.devze.com 2023-04-04 07:34 出处:网络
Monodroid (and Monotouch) look like a great way to develop at least the non-ui part of an app cross-platform and use a common language.

Monodroid (and Monotouch) look like a great way to develop at least the non-ui part of an app cross-platform and use a common language.

However how much overhead does monodroid add for app size and CPU usage?

On the trial (emulator only) download it seems to install 27Mb of Mono, plus 12Mb of platform support but the faq says only ~4.4Mb will be added to an app in the final appstore?.

For running does Mono run a CLR VM in a Dalvik VM (i.e. is there any significant CPU o开发者_开发知识库verhead for something like writing games)


To make debugging quicker, MonoDroid installs the Mono runtime and full set of class libraries to the device instead of packaging and transferring them with your application code every time you make a change.

When you change your project to Release mode, the Mono runtime and the class assemblies your application actually uses are placed in the apk. Additional, a linker pass is run to remove classes and methods from those assemblies that your application does not use.

As the FAQ says, the current overhead is ~4.4MB.

The CLR VM runs separate from the Dalvik VM. (You can run native C code on Android.) The 2 interact any time you use something in the Mono.Android namespace.

0

精彩评论

暂无评论...
验证码 换一张
取 消