使用 gdi+ 的 x64 应用程序:对性能有何影响?
我目前正在实现一个 ASP.Net 应用程序,它使用 GDI+ 进行服务器端渲染。第一个版本依赖于 32 位非托管组件,因此所有托管程序集都是针对 x86 平台编译的。最后,我摆脱了这种依赖性,现在可以将目标平台设置为 AnyCPU。由于应用程序可能用于处理大量数据,因此能够以 64 位运行它可能会很有用。然而,我读到在 x64 平台上使用 GDI+ 时性能会下降,但无法获得有关它的详细信息。
为了了解以 64 位运行是否值得付出性能成本,我应该注意哪些性能问题?
I am currently implementing an ASP.Net application which is using GDI+ to do server-side rendering. First versions were dependent on a 32 bits unmanaged component, so all the managed assembly were compiled for x86 platform. Lastly I got rid of this dependency and am now able to set the target platform to AnyCPU. Since the application can potentially be used to handle a lot of data, being able to run it in 64 bits may be useful. However I read there is a performance decrease when using GDI+ on x64 platform, but was not able to have detailed information about it.
What are the performance issues I should be aware of in order to know if running in 64 bits worth the performance cost?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我得到了错误的信息:在分析为 x86 和 x64 编译的 GDI+ 应用程序后,每个平台的性能似乎都是相同的。我不记得我第一次读到的内容,但它很好地提醒了“在看到之前不要假设任何事情”。
不过,对我的问题有明确的答案还是很好的!
Ok, I had wrong information: after profiling a GDI+ application compiled both for x86 and x64 it appears that the performance are the same for each platform. I do not remember where I read that first, but it is a good reminder of the "assume nothing before seeing" moto.
It's good to have a definitive answer to my question though!