- Notifications
You must be signed in to change notification settings - Fork515
Commit9743630
committed
use
[`str::split`](https://doc.rust-lang.org/std/primitive.str.html#method.split)allocates a vector and generates considerably more instructions when compiledthan [`str::split_once`](https://doc.rust-lang.org/std/primitive.str.html#method.split_once).[`u64::from_str_radix(split_lo, 16)`](https://doc.rust-lang.org/std/primitive.u64.html#method.from_str_radix)will error if the `lsn_str` contains more than one `/` so this change shouldresult in the same behavior as the current implementation despite not explicitlychecking this.split_once
instead ofsplit
to parse lsn strings1 parent270a29b commit9743630
2 files changed
+14
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 |
| |
4 | 10 |
| |
5 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
46 | 44 |
| |
47 | 45 |
| |
48 | 46 |
| |
|
0 commit comments
Comments
(0)