Only render changed files #3674
-
On of the benefits of Hugo is how fast it is. I don't like how slow quarto is when rendering (taking several seconds to build + refresh). I wrote this script to scan for files that have changed locally compared to remote and only render those files. It takes the guesswork out of comparing changes.
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 14 replies
-
Did you try |
Beta Was this translation helpful? Give feedback.
-
Yes, didn't "skip" the file like I had hoped when running a blanket "quarto
render"
…On Wed, Dec 14, 2022 at 12:29 PM Mickaël Canouil ***@***.***> wrote:
Did you try execute.freeze?
See https://quarto.org/docs/projects/code-execution.html#freeze
—
Reply to this email directly, view it on GitHub
<#3674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEOYC64MMEFHWYFBGWB6LRLWNIU4JANCNFSM6AAAAAAS647JV4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The freeze option is a project option: "Note that freeze controls whether execution occurs during global project renders." This might also be related to #3661 |
Beta Was this translation helpful? Give feedback.
-
That's a neat script. Making quarto faster is definitely on our radar and there's some incoming improvements in 1.3. With regards to re-rendering, we're currently being conservative on If you're working interactively on a large quarto project, then |
Beta Was this translation helpful? Give feedback.
-
This is extremely useful in a project with large number of files and collaborators. In addition to freezing code execution, there must be an option to freeze rendering of files in a project. Something like
Another idea is to have it linked to format to allow selective freezing of specific formats in a project. Something like
I totally understand the concern "we don't currently have a reliable enough render state to know that the input file hasn't changed". But, leave that to the user to decide whether they want to use this option and take the risk. |
Beta Was this translation helpful? Give feedback.
-
To note, the following "epic" issue should help with this: |
Beta Was this translation helpful? Give feedback.
-
@bryanwhiting Thank you for the script. It saves a lot of time for me. |
Beta Was this translation helpful? Give feedback.
-
Glad it's still helping out all these years later!
Thanks,
Bryan
…On Sun, Aug 17, 2025 at 1:14 PM Aik Tarkhanyan ***@***.***> wrote:
@bryanwhiting <https://github.com/bryanwhiting> Thank you for the script.
It saves a lot of time for me.
—
Reply to this email directly, view it on GitHub
<#3674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEOYC6YO6U3BVAO3FQH3W5T3ODPEBAVCNFSM6AAAAABWAZMV72VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTGM4TIMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
That's a neat script. Making quarto faster is definitely on our radar and there's some incoming improvements in 1.3.
With regards to re-rendering, we're currently being conservative on
quarto render
because of possible dependencies. As a simple example, listings can use content from other files, and so a simplediff
-based approach won't always work.If you're working interactively on a large quarto project, then
quarto preview
can offer a better experience thanquarto render
everything all the time: the preview command will render everything once, but then will only refresh the changed files.