Skip to content

Performance Improvements #433

Closed
Closed

Description

@MarkRobbo

Overview

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.

Activity

  1. mr-c commented on Jun 21, 2017

    @mr-c
    Member

    Thank you very much @MarkRobbo

    I wonder how many of the conformance tests break with add_schemas skipped..

  2. tetron commented on Jun 21, 2017

    @tetron
    Member

    IIRC the uses of schema loading are:

    1. To use RDFS/OWL reasoning about file formats
    2. 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.

  3. stain commented on Jun 23, 2017

    @stain
    Member

    Would it make sense then to add a --skip-schemas ?

  4. mr-c commented on Jun 23, 2017

    @mr-c
    Member

    @stain I think --skip-schemas is worth exploring, yes

  5. self-assigned this
    on Jun 23, 2017
  6. added 2 commits that reference this issue on Jun 23, 2017
    e39018a
    84ccb1b
  7. added a commit that references this issue on Jun 27, 2017
    8808c60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions