Skip to content

#1651: fix memory exhaustion in find-missing-issues#1776

Open
VasilevNStas wants to merge 3 commits into
zerocracy:masterfrom
VasilevNStas:1651-memory-fix
Open

#1651: fix memory exhaustion in find-missing-issues#1776
VasilevNStas wants to merge 3 commits into
zerocracy:masterfrom
VasilevNStas:1651-memory-fix

Conversation

@VasilevNStas

@VasilevNStas VasilevNStas commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Replaces the array-based missing issue detection in find-missing-issues.rb with a Set-based streaming iteration to avoid memory exhaustion on repositories with sparse issue numbers.

Previously built must = (min..max).to_a and missing = must - issues, constructing large arrays for gaps. Now iterates the range and checks membership via Set#include?.

Also fixes the log message variables to comply with Elegant/GoodVariableName (no underscores).

Closes #1651

@VasilevNStas

Copy link
Copy Markdown
Contributor Author

@yegor256 plz review

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.

find-missing-issues builds a million-element array (memory exhaustion)

1 participant