-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Description
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
- Create
minimal.qmdfile:
---
title: "Minimal reprex"
format: html
---
```{r}
cat(strrep("x", 100000))
```
time quarto render minimal.qmd- 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......OKReactions are currently unavailable