You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cwltool currently could benefit from significant performance improvements through changes in the way workflows and tooling are processed. Suggestions for this based on profiling from @stain
Flag for skipping add_schemas
For workflows with complex schemas, it takes a huge amount of time for cwltool to gather, process and check them. Profiles can be seen below before and after removal:
This was tested by adding a simple return statement at the start of the function. This option could benefit a lot of users and would be an easy win
Multicore file loading
A large part of the remaining time taken, as would be expected, is in downloading and parsing.
Currently cwltool spends about 0.6s per file loaded remotely. As in the above traces of a total time of 86s, 36s is http fetching. These files could be loaded in parallel on a multicore machine and yaml parsing a different document could be done at the same time as downloading another.
With many split tooling files or subworkflows this will make a particularly large impact.
Establish an expanded vocabulary that recognizes foreign properties (making "unrecognized foreign property" warnings more meaningful because they are more likely to be legitimate errors).
These are both "nice to have" behaviors that are not essential to core CWL execution.
Activity
mr-c commentedon Jun 21, 2017
Thank you very much @MarkRobbo
I wonder how many of the conformance tests break with
add_schemasskipped..tetron commentedon Jun 21, 2017
IIRC the uses of schema loading are:
These are both "nice to have" behaviors that are not essential to core CWL execution.
stain commentedon Jun 23, 2017
Would it make sense then to add a
--skip-schemas?mr-c commentedon Jun 23, 2017
@stain I think
--skip-schemasis worth exploring, yesOptional skip_schemas
Add --skip_schemas to avoid loading external schemas
Optional skip_schemas