sharesec: Fix execution delay for large number of shares
Compare changes
Files
4+ 11
− 0
@@ -4298,6 +4298,17 @@ bool lp_load_with_registry_shares(const char *pszFname)
sharesec utility takes more time to finish in case of large number of shares.
The utility loads registry along with all shares info on every invocation, however it does not use any of that information apart from checking existence of share by its name. Therefore as number of shares increases it starts taking more time.
As a fix, we define and use function which would load registry but not share info, this shall ensure all lp_() functions would work without any issue and avoid delay regardless of number of shares. And another function which shall check existence of share by directly checking from registry or config file using appropriate APIs.
Signed-off-by:
with name/author being identical to the
commit authorBUG:
tag addedREADME.Coding.md