NUbots / robocup

The NUbot's RoboCup Code
GNU General Public License v3.0
34 stars 17 forks source link

Extend Configurable objects to allow a set of dependent paths #31

Closed mmetcalfe closed 7 years ago

mmetcalfe commented 11 years ago

A configurable object may only need to subscribe to changes in small sets of parameters stored in separate parts of the config tree.

Currently, the Configurable object would be forced to subscribe to all changes below some mutual ancestor of the parameters it needs (which, in the worst case, is the root node), causing it to be updated unnecessarily often (every time any parameter is changed, in the worst case).

A performance improvement would be to allow a set of base paths, so that the Configurable can subscribe only to what it needs.