prusa3d / Prusa-Firmware-MMU

Other
35 stars 19 forks source link

optimisation: inline a few specific functions to reduce code size #245

Closed gudnimg closed 1 year ago

gudnimg commented 1 year ago

Functions inlined here should not have any impact on timing sensitive code

Change in memory: Flash: -394 bytes SRAM: 0 bytes

Before:

Program:   28176 bytes (86.0% Full)
Data:       1778 bytes (69.5% Full)

After:

Program:   27782 bytes (84.8% Full)
Data:       1778 bytes (69.5% Full)