FOME-Tech / fome-fw

Free Open Motorsports ECU
https://www.fome.tech
Other
35 stars 17 forks source link

poke around for tables we can compact #371

Open mck1117 opened 4 months ago

mck1117 commented 4 months ago

Many tables still use float when that level of precision is unnecessary, wasting some memory. Let's convert what we can to scaled (smaller) integers instead.

nmschulte commented 4 months ago

related: https://github.com/FOME-Tech/fome-fw/blob/master/firmware/integration/rusefi_config.txt#L56

! todo: move all curves and tables out of engineConfiguration that would make 'activeConfiguration' smaller and we might save a couple of K of ram
mck1117 commented 4 months ago

8680b22816e99d6a36bf8e2e1303fa485c0fda74 moved 572 bytes out of engine_configuration_s, saving the same amount of RAM.