Skip to content

Speed up wrapper generation #125

Description

@kwabenantim

Summary

Running PyChaste wrapper generation ( ~270 wrapped classes, ~1,300 headers) takes ~12 min.

Preliminary profiling results show:

  • ~ 1/3 of the time is spent in the CastXML/pygccxml parse stage.
  • ~ 2/3 of the time is spent in the Python wrapper generation code.

Options for potential speedup could involve:

  • Optimising repetitive pathlib and regex operations.
  • Tightening restrictions on source paths walked (e.g. build dirs).
  • Optimising sort_classes.
  • Optimising hierarchy_attribute searches.
  • Parallelising the CastXML parse by splitting the header collection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions