Skip to content

quarto is 100x slower than rmarkdown for long outputs #14156

@idavydov

Description

@idavydov

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

Quarto render is very slow when the cat output is long.

Steps to reproduce

  1. Create minimal.qmd file:
---
title: "Minimal reprex"
format: html
---

```{r}
cat(strrep("x", 100000))
```
  1. time quarto render minimal.qmd
  2. For comparison you can create minimal.Rmd:
---
title: "Minimal reprex"
output: html_document
---

```{r}
cat(strrep("x", 100000))
```

Actual behavior

$ time quarto render minimal.qmd > /dev/null 2>&1
quarto render minimal.qmd > /dev/null 2>&1  35.41s user 0.88s system 99% cpu 36.399 total
$ time Rscript -e 'rmarkdown::render("minimal.Rmd")' > /dev/null 2>&1
Rscript -e 'rmarkdown::render("minimal.Rmd")' > /dev/null 2>&1  0.34s user 0.08s system 86% cpu 0.487 total

Expected behavior

Quarto should run in <1s. The difference gets even worse for longer outputs.

Your environment

Tested on linux and on Mac OS X (m2)

Quarto check output

$ quarto check
Quarto 1.8.27
[✓] Checking environment information...
      Quarto cache location: /Users/davydovi/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.8.27
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
      Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.14.2
      Path: /opt/homebrew/opt/python@3.14/bin/python3.14
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.5.1
      Path: /opt/homebrew/Cellar/r/4.5.1/lib/R
      LibPaths:
        - /opt/homebrew/lib/R/4.5/site-library
        - /opt/homebrew/Cellar/r/4.5.1/lib/R/library
      knitr: 1.50
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions