Closed sonelu closed 4 years ago
Added a cache mechanism in BaseDevice
at the class level where we store the file_ini
loaded from YAML file with a key the model file. When creating another device we first check if we already have the model file in the cache, and if yes we use that instead of reloading the YAML file.
Currently for each device in the robot definition the constructor reads the device model file and parses it. This makes the process very slow as it need to process several hundred of items when initialising the robot.