Skip to content

Suggested Performance Improvement - choose markdown engine once (DRAFT) #1524

@slodge

Description

@slodge

Prework

Description

We've got one app in test where we were seeing very slow interactive gt rendering times.

I believe the majority of this slowness came from markdown cell rendering - and when I've tried simpler reproduction projects I've generated some profvis outputs that demonstrated this:
image

However... in my real project, profvis is pointing to utils::packageVersion as being a significant performance issue - e.g. see:
image

... but I haven't yet gotten similar results in my test repro projects (yet). I'm not sure why this is - but I'll see if I can work out why "soon" - e.g. perhaps something to do with renv (used in my real project but not in my test repro one)

I'm pausing investigating this for a moment now - but thought I'd open this draft issue/PR now - is this change something gt would be interested in?

Reproducible example

  • Post a minimal reproducible example so the maintainer can troubleshoot the problems you identify. A reproducible example is:
    • Runnable: post enough R code and data so any onlooker can create the error on their own computer.
    • Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
    • Readable: format your code according to the tidyverse style guide.

Expected result

  • Todo - once I get a nice repro

Session info

  • Todo - once I get a nice repro

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions