Skip to content

PPTX conversion takes hours on charts bound to a whole Excel column #2701

Open

Description

Converting a .pptx with a chart can take hours. #2227 removed the extra loop in _convert_chart_to_markdown, but series.values in python-pptx is itself quadratic: for each declared point it runs an XPath search over all of the series' points.

When a series is bound to a whole column, its cache can declare many points, however few cells hold data. A deck of ours had
two such scatter charts with about 20,600 real points each. With markitdown 0.1.8 and python-pptx 1.0.2 each lookup took about 7 ms, so about 2 hours per chart.

python-pptx has had no commits since 2024, so I'd fix it here by reading each series' points once. PR to follow.

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