@@ -3646,6 +3646,10 @@ msgid ""
3646
3646
"Set LINEAR_PROBES=0 to turn-off linear probing entirely. (Contributed by "
3647
3647
"Raymond Hettinger in :issue:`18771`.)"
3648
3648
msgstr ""
3649
+ "针对集合的哈希碰撞的耗费现在已被降低。 每次哈希表检测现在会先检查一系列连续的、相邻的键/哈希值对再继续对整个哈希表执行随机检测。 "
3650
+ "这将利用缓存本地化来使得碰撞求解付出较少代价。 这种碰撞求解方案可被描述为线性检测和开放寻址的结合。 额外的线性检测数默认为九次。 这可以在编译时通过将"
3651
+ " LINEAR_PROBES 定义为任意值来修改。 设置 LINEAR_PROBES=0 可完全关闭线性检测。 (由 Raymond Hettinger"
3652
+ " 在 :issue:`18771` 中贡献。)"
3649
3653
3650
3654
#: ../../whatsnew/3.4.rst:2027
3651
3655
msgid ""
@@ -3657,26 +3661,37 @@ msgid ""
3657
3661
"Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`,"
3658
3662
" :issue:`19205` and :issue:`9548`.)"
3659
3663
msgstr ""
3664
+ "解释器启动速度加快了约 30%。 多项措施促成了此次加速。 解释器在启动时加载的模块有所减少,例如 :mod:`re`, "
3665
+ ":mod:`collections` 和 :mod:`locale` 模块及其依赖默认不再被导入。 marshal 模块得到改进以便更快速地加载已编译的"
3666
+ " Python 代码。 (由 Antoine Pitrou, Christian Heimes 和 Victor Stinner 在 "
3667
+ ":issue:`19219`, :issue:`19218`, :issue:`19209`, :issue:`19205` 和 "
3668
+ ":issue:`9548` 中贡献。)"
3660
3669
3661
3670
#: ../../whatsnew/3.4.rst:2035
3662
3671
msgid ""
3663
3672
":class:`bz2.BZ2File` is now as fast or faster than the Python2 version for "
3664
3673
"most cases. :class:`lzma.LZMAFile` has also been optimized. (Contributed "
3665
3674
"by Serhiy Storchaka and Nadeem Vawda in :issue:`16034`.)"
3666
3675
msgstr ""
3676
+ "现在 :class:`bz2.BZ2File` 在多数情况下相比 Python2 版本速度都一样快更快或。 :class:`lzma.LZMAFile`"
3677
+ " 也获得了优化。 (由 Serhiy Storchaka 和 Nadeem Vawda 在 :issue:`16034` 中贡献。)"
3667
3678
3668
3679
#: ../../whatsnew/3.4.rst:2039
3669
3680
msgid ""
3670
3681
":func:`random.getrandbits` is 20%-40% faster for small integers (the most "
3671
3682
"common use case). (Contributed by Serhiy Storchaka in :issue:`16674`.)"
3672
3683
msgstr ""
3684
+ ":func:`random.getrandbits` 对于小整数(最常见的应用场景)可加速 20%-40%。 (由 Serhiy Storchaka 在"
3685
+ " :issue:`16674` 中贡献。)"
3673
3686
3674
3687
#: ../../whatsnew/3.4.rst:2042
3675
3688
msgid ""
3676
3689
"By taking advantage of the new storage format for strings, pickling of "
3677
3690
"strings is now significantly faster. (Contributed by Victor Stinner and "
3678
3691
"Antoine Pitrou in :issue:`15596`.)"
3679
3692
msgstr ""
3693
+ "得益于字符串的新存储格式,对字符串执行 pickle 操作现在将有明显加速。 (由 Victor Stinner 和 Antoine Pitrou 在 "
3694
+ ":issue:`15596` 中贡献。)"
3680
3695
3681
3696
#: ../../whatsnew/3.4.rst:2046
3682
3697
msgid ""
0 commit comments