Commit 4412324
committed
perf(reader): 使用unsafe.Slice优化ReadU8性能
通过使用unsafe.Slice直接读取数据到变量中,避免了额外的内存分配和拷贝操作,从而提高了ReadU8函数的性能。1 parent f30d881 commit 4412324
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments