Closed tmalsburg closed 6 years ago
Hum, indeed emacs -q tangles ~10x faster than configured Emacs. I'll have to check that.
It's not a bug, it's a feature (of my config). IIUC, Org creates a new buffer for each and every src block. Which means everything that happens when the language's major mode gets loaded happens once for each src block. Hence, slowdowns. That's also why my Python version, naive as the implementation is, is way faster: it doesn't do anything with the block contents, it certainly doesn't treat them as code, it just routes them to different files.
I don't know if my config has the same issue, but tangling in Org is ridiculously slow, even for a small file. org-babel-tangle
is more than 100 times faster.
Perhaps you're hitting a bug? I guess the org developers might appreciate a bug report.