[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: org-tangle writes region for every single block [9.4.4 (9.4.4-e
From: |
Ihor Radchenko |
Subject: |
Re: Bug: org-tangle writes region for every single block [9.4.4 (9.4.4-elpa @ /home/miha/.config/emacs/elpa/org-20201222/)] |
Date: |
Tue, 23 Nov 2021 20:37:57 +0800 |
jakanakaevangeli@chiru.no writes:
> Tangling a file with a lot of src blocks can get quite slow because
> write-region is called for each individual src block.
>
> On my machine it takes 8 seconds to tangle a file with 160 blocks of the
> same language. Tangling the file over tramp would probably take about 5
> minutes.
>
> Perhaps it would be more optimal to only save each file at the end
> of src block extraction.
I am not sure if the bulk of tangling time is spent actually writing to
disk. Can you try your problematic file on latest main? There are some
improvements that should improve tangling speed significantly.
Best,
Ihor
- Re: Bug: org-tangle writes region for every single block [9.4.4 (9.4.4-elpa @ /home/miha/.config/emacs/elpa/org-20201222/)],
Ihor Radchenko <=