component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Use single shared `ActionBlock`

Open JamieMagee opened this issue 3 years ago • 0 comments

Currently we're creating a single ActionBlock per detector, however we should look into using one shared ActionBlock across all detectors.

We're running each detector here:

https://github.com/microsoft/component-detection/blob/368f3c9692a51795d4f89a46ff6061ded9109a11/src/Microsoft.ComponentDetection.Orchestrator/Services/DetectorProcessingService.cs#L69

Which eventually creates a new ActionBlock:

https://github.com/microsoft/component-detection/blob/368f3c9692a51795d4f89a46ff6061ded9109a11/src/Microsoft.ComponentDetection.Contracts/FileComponentDetector.cs#L92-L94

Recommended after speaking with @dfederm

JamieMagee avatar Aug 26 '22 22:08 JamieMagee