phylum-dev / community-extensions

A collection of community extensions for the Phylum CLI
https://www.phylum.io/
GNU General Public License v3.0
1 stars 1 forks source link

Limit memory usage for the export #42

Closed louislang closed 6 months ago

louislang commented 6 months ago

Previously we were storing all project data as we retrieve it from the API, and then wrote to disk at the end. For user's with a large amount of projects, this can exhaust memory. This change writes to disk immediately, before moving onto the next project, without storing the project data in memory over the long term.

Additionally, we cut down parallelization to three (down from seven) to limit the activities happening at any given time.