Skip to content

Improve performance by vectorisation #415

@mgirlich

Description

@mgirlich

Creating HTML tags and marking text as HTML is pretty slow because it isn't vectorised. It would be great to have vectorised interface for such situations. This would help to improve the performance of rendering big tables with {gt}.
In rstudio/gt#1470 I improved the performance of rendering a gt table. There are some more optimisations to be done but now about a quarter of the time is spent in htmltools::tag() and htmltools::HTML().

Overall, I think improving the performance of creating HTML and the rendering would be a great help for gt (and other packages that need to render a bit more HTML).

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