[rpcd PATCH 3/4] rc: add option to skip running check for list method

Karl Palsson karlp at tweak.net.au
Wed Feb 1 02:50:24 PST 2023




Christian Marangi <ansuelsmth at gmail.com> wrote:
> Running check may be slow and increase result time in the other
> of 70ms for the list method.
> 
> Add an option to skip running check by passing the
> skip_running_check as true in the list method args to speedup
> execution if the running info is not needed.
> 
> With the option set to true the execution time lower to just
> 5ms.

Can I ask what you're doing that you are calling ubus service
list so often that 70ms vs 5ms is meaningful? You're complicating
APIs and adding code for what seems wildly unnecessary?

Sincerely,
Karl Palsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP-digital-signature.html
Type: application/pgp-signature
Size: 1175 bytes
Desc: OpenPGP Digital Signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20230201/674cb83e/attachment-0001.sig>


More information about the openwrt-devel mailing list