Skip to content

VTT Writer performances #438

@nywhere

Description

@nywhere

Hi,

Source is an SCC with 1033 captions.

  • Converting it to TTML is ok
  • Converting it to VTT is very slow (10s on MacBook pro)
  • Converting it to TTML then to VTT is very slow (10s on MacBook pro)

source.scc.zip

Top 3 Time-Consuming Operations:

_process_element (isd.py:413)

Consumed 35.644s cumulative time
Called 2,165,274 times
Recursive function (note the ncalls format: 2165274/48445)

_compute_styles (isd.py:400)

Consumed 11.755s cumulative time
Called 150,222 times

set_style (model.py:339)

Consumed 5.424s cumulative time
Called 10,642,028 times

Please let me know if you need more details.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions