Skip to content

Conversation

@aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented May 12, 2021

This version will count lines of code in each file serially. It still
runs all file system operations asynchronously. The only difference now
is that it will only count one file at a time. It is slower, but it
is able to count large repositories without running out of memory.

Fixes #498

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

This version will count lines of code in each file serially. It still
runs all file system operations asynchronously. The only difference now
is that it will only count one file at a time. It is slower, but it
is able to count large repositories without running out of memory.
@aeisenberg aeisenberg requested a review from adityasharad May 12, 2021 23:33
@aeisenberg
Copy link
Contributor Author

Before merging, I want to try this on at least one repository that is currently giving us OOME.

@aeisenberg
Copy link
Contributor Author

This run is against a repository that had an OOME in the past, with the v1 branch of the action:
https://github.com/aeisenberg/Mudlet/actions/runs/837223527

I feel confident that this will fix the problem.

@aeisenberg aeisenberg merged commit a924f03 into main May 13, 2021
@aeisenberg aeisenberg deleted the aeisenberg/non-parallel-loc branch May 13, 2021 17:10
@github-actions github-actions bot mentioned this pull request May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent OOME when counting lines of code

3 participants