On 1/24/2024 5:50 PM, Aditya Mahajan wrote:
On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote:
Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have heavy penalty on highlighting the code otherwise.
Have you tried the vim module:
https://github.com/adityam/filter/blob/dev/vim-README.md
Caching is enabled out of the box, so you don't need to configure anything.
Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file.
There used to a command for caching metafun images in MkII, but I don't know if that is really needed in LMTX. In most cases, metapost processing does not have a significant processing delay. if images are the same one can use the reuseMPgraphic or uniqueMPgraphic features .. plenty of examples can be found, but as Aditya poined out mp is quite fast (but reuse saves on file size)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------