Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swrenderer: make sure small functions in fixed point are inlined
`cargo bench -p printerdemo_mcu` Before ``` bench fastest │ slowest │ median │ mean │ samples │ iters ├─ full │ │ │ │ │ │ ├─ Rgb565Pixel 2.919 ms │ 8.155 ms │ 4.279 ms │ 4.326 ms │ 100 │ 100 │ ╰─ Rgb<u8> 6.139 ms │ 10.49 ms │ 7.729 ms │ 7.826 ms │ 100 │ 100 ╰─ render_only │ │ │ │ │ ├─ Rgb565Pixel │ │ │ │ │ │ ├─ FullBuffer 1.439 ms │ 4.138 ms │ 1.597 ms │ 1.635 ms │ 100 │ 100 │ ╰─ LineByLine 1.576 ms │ 1.765 ms │ 1.636 ms │ 1.642 ms │ 100 │ 100 ╰─ Rgb<u8> │ │ │ │ │ ├─ FullBuffer 2.016 ms │ 2.872 ms │ 2.111 ms │ 2.128 ms │ 100 │ 100 ╰─ LineByLine 2.122 ms │ 2.995 ms │ 2.21 ms │ 2.245 ms │ 100 │ 100 ``` After ``` bench fastest │ slowest │ median │ mean │ samples │ iters ├─ full │ │ │ │ │ │ ├─ Rgb565Pixel 2.187 ms │ 4.913 ms │ 3.48 ms │ 3.505 ms │ 100 │ 100 │ ╰─ Rgb<u8> 5.489 ms │ 8.193 ms │ 6.713 ms │ 6.723 ms │ 100 │ 100 ╰─ render_only │ │ │ │ │ ├─ Rgb565Pixel │ │ │ │ │ │ ├─ FullBuffer 1.105 ms │ 1.932 ms │ 1.225 ms │ 1.278 ms │ 100 │ 100 │ ╰─ LineByLine 1.188 ms │ 2.052 ms │ 1.289 ms │ 1.352 ms │ 100 │ 100 ╰─ Rgb<u8> │ │ │ │ │ ├─ FullBuffer 1.505 ms │ 2.643 ms │ 1.599 ms │ 1.669 ms │ 100 │ 100 ╰─ LineByLine 1.539 ms │ 2.058 ms │ 1.641 ms │ 1.652 ms │ 100 │ 100 ```
- Loading branch information