Runtime can be optimised. Firstly we can circumvent code executions for resources that do not require to be passed through the factories. Secondly we can leverage batch processing by adding a buffer. Maybe the work of committing the graph can be offloaded to a separate process.
Note: It needs to be thoroughly checked what the impact is on dependency issues. Committing to the graph will be asynchronous. Any query in wrappers to the graph, must be aware of this.
Runtime can be optimised. Firstly we can circumvent code executions for resources that do not require to be passed through the factories. Secondly we can leverage batch processing by adding a buffer. Maybe the work of committing the graph can be offloaded to a separate process.
Note: It needs to be thoroughly checked what the impact is on dependency issues. Committing to the graph will be asynchronous. Any query in wrappers to the graph, must be aware of this.