rob05c commented on issue #4493: Change ORT/atstccfg to generate all files at 
once, massive performance improvement
URL: https://github.com/apache/trafficcontrol/pull/4493#issuecomment-599691157
 
 
   >includes fixes to a number of ORT slugs I found.
   
   If anyone wants more detail: the big ones were `check_this_plugin` and 
`package_installed`. These funcs call OS yum data about installed packages, 
which is reasonably slow. They were calling out for every single plugin on 
every single remap line, ~2000 calls on a large CDN. But we only have ~10 
unique plugins and packages.
   
   I changed them to cache results, so they only ever call out to Yum/CentOS 
once per unique name.
   
   That saved about 2 minutes on my large CDN run, reducing the full ORT run 
(after the single-file changes and other performance fixes) from about 140 
seconds to about 20 seconds.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to