Re: Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-26 Thread Ihor Radchenko
Ihor Radchenko writes: > Most of the CPU time is spent in org-babel-tangle-collect-blocks, which > is basically another regexp search for all the source blocks in buffer. > The scaling is still slightly non-linear - maybe your source block > regexp is too complex: After further investigation I

Re: Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-25 Thread Tim Cross
Ihor Radchenko writes: > pareto optimal writes: > >> Using =emacs -Q= to tangle org files with more than over 100 noweb-refs gets >> slow fast. >> >> Given this org code for N=2: >> Using Gcc Emacs 28.0.91 (which I typicall use) I get these results: >> >> | N blocks | runtime | # of GCs | >>

Re: Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-25 Thread Ihor Radchenko
Sébastien Miquel writes: > pareto optimal writes: >> Using =emacs -Q= to tangle org files with more than over 100 >> noweb-refs gets slow fast. > I can reproduce the slow down with my config. The culprit is > ~org-element--cache-verify-element~. Significantly decreasing >

Re: Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-25 Thread Ihor Radchenko
pareto optimal writes: > Using =emacs -Q= to tangle org files with more than over 100 noweb-refs gets > slow fast. > > Given this org code for N=2: > Using Gcc Emacs 28.0.91 (which I typicall use) I get these results: > > | N blocks | runtime | # of GCs | > |--+-+--| > | 

Re: Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-25 Thread Sébastien Miquel
Hi, pareto optimal writes: Using =emacs -Q= to tangle org files with more than over 100 noweb-refs gets slow fast. I can reproduce the slow down with my config. The culprit is ~org-element--cache-verify-element~. Significantly decreasing =org-element--cache-self-verify-frequency= yields a 5x

Poor org-babel-tangle-file performance with more than 100 trivial noweb-references

2022-01-25 Thread pareto optimal
Using =emacs -Q= to tangle org files with more than over 100 noweb-refs gets slow fast. Given this org code for N=2: #+begin_src org :tangle 2.org   ,#+begin_src elisp :noweb yes :tangle 2.el   <>   ,#+end_src   ,#+begin_src elisp :noweb-ref some-reference :tangle no   ;; comment   ,#+end_src