You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by GitBox <gi...@apache.org> on 2018/10/01 16:02:39 UTC

[GitHub] dknig1b opened a new pull request #41: Memoize loader.load and loader.load_json

dknig1b opened a new pull request #41: Memoize loader.load and loader.load_json
URL: https://github.com/apache/aurora/pull/41
 
 
   Problem: when reusing the aurora.client.cli.context to process multiple jobkeys from a config_file, the client currently reloads and processes the config file for each jobkey. For large complicated aurora files this can take ~40s to process which makes it expensive to do this every time for each jobkey.
   
   Solution: memoize the loader.load() on the config file path so that we only load and process each config file once.
   
   Result:  We only need to load and process each config file once.  For config files with ~50keys and a 40s load time, this significantly reduces the overall time spent inspecting the jobs.

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


With regards,
Apache Git Services