简体   繁体   English

Smalltalk中图像生成和图像剥离有什么区别?

[英]What is the difference between image generation and image stripping in Smalltalk?

I read often of an "Image Generation" process in Smalltalk. 我经常阅读Smalltalk中的“图像生成”过程。 The process seems to refer creating an image from scratch, from inside a Smalltalk. 这个过程似乎是指从Smalltalk内部创建一个从头开始的图像。

But there is also a "Strip" process, which seems to involve removing objects to deploy a runtime. 但是还有一个“剥离”过程,似乎涉及删除对象以部署运行时。

What is the difference between both? 两者有什么区别? There is any Smalltalk which supports image generation? 有没有支持图像生成的Smalltalk?

Term image generation often refers to process which starts from default vanilla image as shipped with installation, and loading of all code into it that is necessary for some project. 术语图像生成通常是指从安装附带的默认香草图像开始,并将所有代码加载到某个项目所需的代码中的过程。 This is done periodically during development to ensure that all code actually loads and works in the default image without problems. 这在开发期间定期完成,以确保所有代码实际加载并在默认图像中正常工作而不会出现问题。

Stripping is process that is (sometimes) done before deployment, from the image that contains all necessary code for the project, some of unused classes and methods are "stripped out" from the image. 剥离是在部署之前(有时)完成的过程,从包含项目所有必需代码的图像中,一些未使用的类和方法从图像中“剥离”。 This is done to make deployed image smaller, or less dependent of external shared libraries, or for security reasons, or licensing reasons. 这样做是为了使部署的映像更小或更少依赖外部共享库,或出于安全原因或许可原因。 For instance stripping might remove many classes related to the UI for the headless server. 例如,剥离可能会删除许多与无头服务器的UI相关的类。 Or it might remove compiler to prevent user to change the code. 或者它可能会删除编译器以防止用户更改代码。 In any case stripping is not exact science, since it is difficult to determine what can be removed and what not. 在任何情况下,剥离都不是精确的科学,因为很难确定什么可以去除和什么不可以。

So with image generation you end up with the image that is larger than the one you have started with, and with stripping you end up with smaller image. 因此,对于图像生成,您最终得到的图像大于您开始使用的图像,并且剥离最终会得到较小的图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM