This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Redundant config data due to each implementation storing a copy #10
Labels
bug
Something isn't working
WML/src/main/include/devices/DeployableDevice.h
Lines 40 to 41 in 9f6f880
As the config isn't stored as a pointer (and is private), all implementations of DeployableDevice have to store an additional copy of their own config, which contains redundant data also stored in DeployableDevice::config - much more memory is used than needed, especially if the config contains non-pointer types complex types.
This problem isn't limited to just DeployableDevice (I used it as an example), but overall it shouldn't take too long to fix and is also backwards compatible.
The text was updated successfully, but these errors were encountered: