Closed laileni-aws closed 3 months ago
In the PR statement, please elaborate on a bit laggy
of getDirSize
.
Run it in a repository of 1k files with 10 to 20 folder levels, explain the exact time it takes to run. Do this experiment to quantify the impact.
Can you rename this PR ?
I can approve once you add a change log item
Problem
VSC triggers
getDirSize()
function to calculatecodeScanProjectBytes
for telemetry for bothAuto-scans
andProject scans
.Solution
Disable the
codeScanProjectBytes
calculation forAuto-scans
: Since thecodeScanProjectBytes
parameter is optional forAuto-scans
and is affecting the performance, it makes sense to disable the calculation for this scenario. This will help improve the overall performance of the Auto-scans.Enable the
codeScanProjectBytes
calculation forProject scans
: ForProject scans
, you should continue to calculate thecodeScanProjectBytes
using thegetDirSize()
function, as this information is likely valuable for the telemetry.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.