ioc_plugin.py eats 160MB+ RAM off the HEAP on middlewared startup
Description
I've written a tracemalloc function for middlewared/main.py. I'm trying to track an unrelated memory leak, however, what I've noticed while troubleshooting is that ioc_plugin is loading a yaml file entirely into memory and then iterating over every line. Instead of loading it into memory, we need to iterate over the file itself.
I've written a tracemalloc function for middlewared/main.py. I'm trying to track an unrelated memory leak, however, what I've noticed while troubleshooting is that ioc_plugin is loading a yaml file entirely into memory and then iterating over every line. Instead of loading it into memory, we need to iterate over the file itself.