托管代码与标记混合代码:性能 [英] Managed code vs markup hybrid code: Performance

查看:121
本文介绍了托管代码与标记混合代码:性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们只考虑跨平台托管代码。



我读过标记混合版本很慢而且本机速度很快,但我不知道托管代码。

它们都是跨平台的WORA(写一次,随处运行)。



性能对我来说很重要。

什么更快?托管代码或标记混合代码?

例如,Java或HTML?

Let's consider only cross platform managed code.

I have read markup hybrid is slow and native is fast, but i don't know about managed code.
Both of them are cross platform WORA (Write once, run anywhere).

Performance is matter to me.
What is faster? Managed code or markup hybrid code?
For example, Java or HTML?

推荐答案

通常本机代码意味着直接编译到CPU说明更快,但在某些情况下,在虚拟机器上运行的托管代码可以更快。



所以你真的要试试看哪个最好用适合您的情况。
Generally "native code" meaning compiled directly to the CPU instructions is faster, however in some circumstances "managed code" running on a "virual machine" can be faster.

So you really have to try and see which works best for your situation.


这篇关于托管代码与标记混合代码:性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆