jython 独立 jar 与减少包列表?
jython standalone jar with reduced package list?
new version of Jython 2.7.0 standalone 的大小为 36155 KB;之前发布的版本 2.5.3 是 14005 KB.
如果不需要某些 Python 包,是否有任何方法可以安全地从 .jar 文件中删除功能?我想使用更新后的 Jython 版本,但文件大小现在是个问题,比 2.5.3 大得多。
它更大的原因是在新版本中编译的 class 文件包含在 Lib 文件夹中。
请参阅 http://bugs.jython.org/issue1403 进行讨论
在最后一个条目中有一个 post,其中测量的加速比是从库中删除并包含的所有 class 文件。所以我得出结论,应该可以从 jar 中删除 class 文件并再次压缩它以获得更小的包。
来自 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.
new version of Jython 2.7.0 standalone 的大小为 36155 KB;之前发布的版本 2.5.3 是 14005 KB.
如果不需要某些 Python 包,是否有任何方法可以安全地从 .jar 文件中删除功能?我想使用更新后的 Jython 版本,但文件大小现在是个问题,比 2.5.3 大得多。
它更大的原因是在新版本中编译的 class 文件包含在 Lib 文件夹中。
请参阅 http://bugs.jython.org/issue1403 进行讨论
在最后一个条目中有一个 post,其中测量的加速比是从库中删除并包含的所有 class 文件。所以我得出结论,应该可以从 jar 中删除 class 文件并再次压缩它以获得更小的包。
来自 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.