Re: fastest way to set a config value?

Marcus Meissner <[email protected]> Sat, 27 Aug 2022 10:01:11 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <YwnPR/IyMmzhG23S@jet>
On Thu, Aug 25, 2022 at 02:23:40PM -0700, Dave Taylor wrote:
> Hi, I just wanted to confirm the fastest possible method for setting a
> camera config value.  Is it this?
> 
> gp_widget_set_value()
> gp_camera_set_single_config()

Note you will need to get the widget via get_single_config here.
 
> Or is it to cache the last full config and then run this?
> 
> gp_widget_set_value()
> gp_widget_set_changed()
> gp_camera_set_config()

The first variant will probably be a bit faster.

It should not be doing more USB traffic, so there
is probably not much difference on runtime.

Ciao, Marcus