shining-man / bsc_fw

Firmware battery safety controller (BSC)
MIT License
81 stars 15 forks source link

Get rid of expensive copies caused by passing objects by value #88

Closed meikjaeckle closed 2 months ago

meikjaeckle commented 4 months ago

The main reason for this PR was to get rid of the expensive deep copies of strings passing by value. (I just started with this module, as it is the shortest. I will update the others as well.) Additionally I refactored the module a bit. Following are the main changes: