内容简介:This commit makes the following writing improvements:And the following reading improvements:And the following improvements for both reading and writing:
This commit makes the following writing improvements:
write_to_vec
And the following reading improvements:
- Removes an unnecessary type annotation.
-
Fixes a dangerous unchecked slice access. Imagine a slice
[0x80]
--
the current code will read past the end of the slice some number of
bytes. The bounds check at the end will subsequently trigger, unless
something bad (like a crash) happens first. The cost of doing bounds
check in the loop body is negligible. - Avoids a mask on the final byte.
And the following improvements for both reading and writing:
-
Changes
for
toloop
for the loops, avoiding an unnecessarycondition on each iteration. This also removes the need for
leb128_size
.
All of these changes give significant perf wins, up to 5%.
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Perl入门经典
[美]Curtis "Ovid" Poe / 朱允刚、韩雷、叶斌 / 清华大学出版社 / 2013-9-20 / 78.00
作为最有影响力的编程语言之一,Perl被广泛用在Web开发、数据处理和系统管理中。无论是Perl新手,还是想要加强自己实战技能的Perl程序员,《Perl入门经典》都提供了处理日常情况所需的各种技术。凭借十多年的Perl经验,作者Curtis“Ovid”Poe一开始先简单回顾了Perl的基础知识,然后以此为出发点,举例说明了Perl在工作场所中的各种真实用法。此外,书中还包含了一些动手练习、宝贵建......一起来看看 《Perl入门经典》 这本书的介绍吧!