new version of Jython 2.7.0 standalone大小为 36155 KB;之前发布的版本 2.5.3 为 14005 KB。
如果不需要某些 Python 包,是否有任何方法可以安全地从 .jar 文件中删除功能?我想使用更新的 Jython 版本,但文件大小现在是一个问题,比 2.5.3 更严重。
最佳答案
来自 Jython 开发者邮件列表:
Yes, sorry about that. We are focused on correctness first, then we will go and trim down in subsequent 2.7.x releases, where x > 0. A huge chunk of that additional bloat is supporting unicodedata and the corresponding ICU4J jar we now use.
It should be a straightforward matter of programming to remove this ICU4J dependency. Possibly this and other optimizations, especially startup time, would be suitable for a Google Summer of Code student, given that we are planning to participate this summer.
关于java - jython 独立 jar 减少了软件包列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30337317/