speedup update of device_variable