pos pc 的.NET 开发
我正在为运行 Windows XP 的 pos-pc 开发一个应用程序,该应用程序基于 .NET Framework 4 并使用 wpf 作为 UI。 我需要提高此类应用程序的性能,我已经阅读过有关 ngen 用于生成本机图像的信息,但我不太了解它的工作原理以及如何使用它。 任何有关 ngen 的提示、链接、教程将不胜感激。 我需要创建一个能够运行 .NET Framework 4 的轻量级 Windows XP 版本并使用一些 COM 对象,但我不知道可以从 XP 安装程序中删除什么(使用 nLite)。 我尝试过 Windows 嵌入式 7 标准,但 Intel gma 驱动程序不兼容,我无法安装它。
谢谢
I'm developing an application for a pos-pc running windows xp, this application is based on .NET framework 4 and use wpf for the UI.
I need to increase the performance of such application, I've read about ngen for generate native image but I don't understand very well how it works and how to use it.
Any tip, link, tutorial about ngen will be much appreciated.
I need to create a lightweight version of windows xp capable of running .NET framework 4 and use some COM object but i don't know what I can remove from the XP installer (using nLite).
I've tried Windows embedded 7 standard but the Intel gma driver are not compatible and i can't install it.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
检查这个:改进WPF 应用程序启动时间
简而言之,
ngen
是一个实用程序,它将 Visual Studio 构建过程生成的IL
代码编译为机器相关代码,该代码不依赖于机器。需要JIT
在运行时编译IL。check this one: Improving WPF applications startup time
in short,
ngen
is an utility that compiles theIL
code generated by Visual Studio build process into machine dependent code which does not require theJIT
to compile IL anymore at runtime.ngen 如何与 POS 相关?别搞错了,但这会处理启动性能,并且 POS 会在早上打开一次(如果有的话)(即,如果他们不熬夜)。如果您遇到 WPF 性能问题,我可以建议您修复这些问题,并且不要涉足本机图像生成吗?
How can ngen be relevant for a POS? DOnt getm e right, but this handles startup performance and POS get turned on once in the morning if at all (i.e. if they dont stay up overnight). If you ahve a WPF performacne issue may I suggest you fix those, and dont dabble with native image gneration?
机器可以访问网络吗?也许将业务逻辑从客户端转移到网络上的服务会提高性能,这样客户端就变成了服务的简单 UI 外壳。
Does the machine have network access? Perhaps moving business logic from the client to a service on the network would improve the performance, so that the client becomes simply a UI shell for the service.