Skip to content

officer::body_import_docx() causes multi-minute hang on large documents with many tables #22

@scarlettsijiaw

Description

@scarlettsijiaw

For a document size of 6.2 MB with 26 tables (it's an appendix, hence the number of tables), the render took ~11 minutes between when bookdown render completed and when csasdown::render() actually completed.

Looks like it's because fix_table_cell_styles_xml() is O(tables x doc_size).

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