-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make yaml check utility load each map separately to reduce memory usage. #19649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small code style changes: We want to avoid braces around single line statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No adverse effect on linting and lint performance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes lgtm otherwise.
I ran into an out of memory exception when building CA, and identified the problem being with the YAML check in the utility tool. It loads every map with a significant overhead before checking them, and CA with its 300+ maps ends up using about 8.5GB of RAM.
Running --check-yaml on the bleed RA mod uses approx 1.2GB of RAM. These changes reduce it to around 400MB.