.NET Framework Compact Edition 的内存占用量是多少?
.NET Framework Compact Edition 的内存占用量是多少?
谢谢。
What is the memory footprint for .NET Framework Compact Edition?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据此维基百科页面,大约有 12MB
但话又说回来,此页面表示它将以 128KB 到 1MB 的大小运行。
我的猜测是,它会根据您有多少可用内存而有所不同,并且会根据情况将片段换入和换出内存。 引用第二个链接:
随机存取存储器(RAM)用于存储动态数据结构和JIT编译的代码。 .NET Compact Framework 使用可用 RAM(最多达到设备指定的限制)来缓存生成的代码和数据结构,然后在适当的时候释放内存。
公共语言运行时使用代码投球技术当内存不足时,在运行时释放 JIT 编译的代码块。 这使得更大的程序能够在 RAM 受限的系统上运行,并且性能损失最小。
According to this wikipedia page, it's about 12MB
But then again, this page says it'll run in 128KB to 1MB.
My guess is that it's going to vary based on how much memory you have available and it'll swap pieces in and out of memory depending on circumstances. Quoting from the second link:
Random access memory (RAM) is used to store dynamic data structures and JIT-compiled code. The .NET Compact Framework uses available RAM, up to a limit specified by the device, to cache generated code and data structures and then frees the memory when appropriate.
The common language runtime uses a code-pitching technique to free blocks of JIT-compiled code at run time when memory is low. This enables larger programs to run on RAM-constrained systems with minimal performance penalty.
虽然本文不是关于紧凑框架的(它是关于微型版本的),但它表明Micro 和 Compact 框架之间的比较,注意到 .NET Compact Framework 的内存占用为 12 MB。
Although this article is not about the compact framework (it's about the micro version), it shows a comparison between the Micro and Compact frameworks, noting that the .NET Compact Framework has a memory footprint of 12 MB.