+26
−5
Loading
Do this by caching completions to avoid costly run through the help parser. We cache each completion since it's very unlikely that help for given RPC method may suddenly change. One exception here is a list of available RPCs methods which may change depending on if rpc.py "get"s it while connecting through an actual app socket. Here, we need to reset the cached list whenever sock changes or when actual list gets cleaned up. The overall result should be better user experience with faster responsiveness while tab'ing through the available opts. Change-Id: Ia2e10957558095e22adc57aaed300e121c682d40 Signed-off-by:Michal Berger <michal.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25362 Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>