From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 6A4B626939 for ; Wed, 24 Jan 2024 18:04:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9FB0548409A for ; Wed, 24 Jan 2024 18:02:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HgQDfPAIAWbu for ; Wed, 24 Jan 2024 18:02:42 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7F0484841C6 for ; Wed, 24 Jan 2024 18:01:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 185D7483F28 for ; Wed, 24 Jan 2024 18:00:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sHYER_lDKUIP for ; Wed, 24 Jan 2024 18:00:11 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id B3BC1483F26 for ; Wed, 24 Jan 2024 18:00:11 +0100 (CET) X-KPN-MessageId: 0569a7a1-bada-11ee-91e7-005056994fde Received: from smtp.kpnmail.nl (unknown [10.31.155.5]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 0569a7a1-bada-11ee-91e7-005056994fde; Wed, 24 Jan 2024 18:00:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=EOf4eZDMehg7gdf/QxqFEiD9U3vB+n+W0/V7rZFZyL0=; b=CSYAMX1VxuDuTVV2hPq9/sM005ZTWqy5GkrGPZnhe23hc8EG/6Q+kNp2B8o/UzU1SiTSg6JYqQSM+ CUVZtjh8RGjJQaljIKNwzbtp/jpcnAwIhToG2AFiYgDRZzJ8j8Q5vBiGNto+C2g+j18d3MiuhHcgbB FZQMlYOAKPqKubJwzDdmUNpQOwW0awtedomHuTCVXlAZ9zC9UbQmAylyJhzeAfPJ/AKYJjkp1IFXrN a+AqAwcnPLZ0S+B7jvHhvuc7uje0pMf8A/NS9/ehIFzW73NF5XUc2L1BYMibWlbtdhpreQ03frp9Dv u1VY+3uSY9Jvh6hCte3X29SgOsAXe0w== X-KPN-MID: 33|4J4gJcabqJbbR3L3w8JfWyjY4aIkYtGyYLCG1TjSB3oqhYk2nqN+W6t6XA2zaAe QloddBZiGwHQBD/ShS5p2xKcvpjCzRp4jb+djB+B/Yts= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|qYXf+EiBaygz/yZzU9LvHIoEekA12C3+sYQ1G9oqQ77rqC/GtCjhQ5+ZVP1+i/k iHoMNCXMbXkxX0tDAYNEyYA== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id 08e78cce-bada-11ee-8c43-00505699b758; Wed, 24 Jan 2024 18:00:11 +0100 (CET) Message-ID: <3332595b-5203-471d-a029-5f0cdcdc1317@xs4all.nl> Date: Wed, 24 Jan 2024 18:00:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: mailing list for ConTeXt users References: <3n5n370p-ors0-22ps-4p82-1o59942nr7p5@hzvpu.rqh> From: Hans Hagen In-Reply-To: <3n5n370p-ors0-22ps-4p82-1o59942nr7p5@hzvpu.rqh> Message-ID-Hash: 6EEJL5YJEU5UR6PEZHY2G7IW4L5VMPPX X-Message-ID-Hash: 6EEJL5YJEU5UR6PEZHY2G7IW4L5VMPPX X-MailFrom: j.hagen@xs4all.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________