[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ob-tangle.el: Speed up tangling

From: Sébastien Miquel
Subject: [PATCH] ob-tangle.el: Speed up tangling
Date: Sun, 18 Apr 2021 07:22:52 +0000


The attached patch modifies the ~org-babel-tangle~ function to avoid a
quadratic behavior in the number of blocks tangled to a single file.

Tangling an org buffer with 200 blocks to 5 different files yields a
25 % speedup.

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Group
collected blocks by tangled file name.
(org-babel-tangle): Avoid quadratic behavior in number of blocks.

Sébastien Miquel

Attachment: 0001-ob-tangle.el-Speed-up-tangling.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]