Skip to content

Add option to profile dynamic_functions #917

@arwedus

Description

@arwedus

Hi @danwos, we are experiencing slow build times in our project. A first profiling analysis with py-spy showed that a lot of time is spent in the write phase, and most of that time is spent in sphinx-needs. We suspect dynamic functions to be an issue, but we can't easily test because there is no "global dynamic function ignore" Option. So the first thing I want to do is to add a sphinx-internal profiler option for summarizing CPU time spent in dynamic functions:

https://sphinx-needs.readthedocs.io/en/latest/performance/index.html#profiling

  • add NEEDS_DYNAMIC_FUNCTIONS as an option to NEEDS_PROFILING please :)

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