.net – IronPython的表现

栏目: Python · 发布时间: 7年前

内容简介:翻译自:https://stackoverflow.com/questions/526062/ironpython-performance
我正在考虑将IronPython嵌入到我正在编写的应用程序的脚本语言中.所以为了试一试,我下载了IronPython 2.0并启动了交互式解释器.刚开始使用我的英特尔四核处理器需要大约5秒钟,内存为6 Gig.我很难想象这对于功能较弱的机器会有多大的延迟.

基于 these benchmarks ,似乎IronPython的表现实际上并不是太糟糕.或者是吗?我在安装过程中错误配置了什么?或者这是交互式解释器的问题?

IronPython的表现非常好.您获得的启动性能损失与.NET运行时有关. .NET应用程序通常具有较慢的启动时间,因为许多程序集被加载,其中一些(至少某些类)被动态编译.

这是.NET中的预期行为.实际运行时性能要好得多.通过预编译IronPython程序集并将副本放入计算机的GAC:全局程序集缓存中,甚至可以提高启动性能.这可以使用 gacutil.exe 完成.

翻译自:https://stackoverflow.com/questions/526062/ironpython-performance


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具