Skip to content

feat: implement stream-based analysis runner with memory-optimized garbage collection and directory traversal#407

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
ohamamarachi474-del:Memory-usage-optimization
May 27, 2026
Merged

feat: implement stream-based analysis runner with memory-optimized garbage collection and directory traversal#407
mijinummi merged 1 commit into
MDTechLabs:mainfrom
ohamamarachi474-del:Memory-usage-optimization

Conversation

@ohamamarachi474-del
Copy link
Copy Markdown
Contributor

This pr closes #268

Summary of Changes
Runner Module:
Created analysis-runner.ts implementing StreamAnalysisRunner (streaming file processing, yield-based findings, immediate dereferencing, and garbage collection triggering via global.gc()) and streamFiles (recursively streams files one-by-one).
Created index.ts to export the runner API.
Tests:
Added analysis-runner.spec.ts covering file stream checks, GC triggering, and yield validation.
Verification:
Ran npm test tests/analysis-runner.spec.ts successfully; all 3 tests passed.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@ohamamarachi474-del Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mijinummi mijinummi merged commit e89a078 into MDTechLabs:main May 27, 2026
1 of 3 checks passed
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.

🧠 Memory Usage Optimization

3 participants