Commit 4551fe3
committed
Remove
Since `struct.unpack_from` is already an offset-based approach at the
C level, and `result.extend` requires data copy anyway, avoiding a
`memoryview` wrapper prevents redundant Python object allocation and
pointer-shifting overhead, yielding optimal runtime memory footprint
and CPU performance.memoryview usage1 parent 4eae06b commit 4551fe3
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2717 | 2717 | | |
2718 | 2718 | | |
2719 | 2719 | | |
2720 | | - | |
2721 | | - | |
| 2720 | + | |
2722 | 2721 | | |
2723 | | - | |
2724 | | - | |
2725 | | - | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
2726 | 2725 | | |
2727 | 2726 | | |
2728 | | - | |
| 2727 | + | |
2729 | 2728 | | |
2730 | 2729 | | |
2731 | 2730 | | |
2732 | | - | |
2733 | | - | |
| 2731 | + | |
| 2732 | + | |
2734 | 2733 | | |
2735 | 2734 | | |
2736 | 2735 | | |
| |||
0 commit comments