From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24246 invoked from network); 8 Dec 2023 20:20:51 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2023 20:20:51 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D2C2E4839CC for ; Fri, 8 Dec 2023 21:19:48 +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 MOz4XK39u79x for ; Fri, 8 Dec 2023 21:19:48 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DFD3B483A70 for ; Fri, 8 Dec 2023 21:19:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1593A483485 for ; Fri, 8 Dec 2023 21:18:52 +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 pVRzMc47Y2Px for ; Fri, 8 Dec 2023 21:18:51 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (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 B6575483481 for ; Fri, 8 Dec 2023 21:18:51 +0100 (CET) X-KPN-MessageId: f9cb8222-9606-11ee-90ec-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id f9cb8222-9606-11ee-90ec-00505699b430; Fri, 08 Dec 2023 21:18:39 +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=1d0oMGfDzJn6DHEuAqhDPVmP5TX1wtH7jx3/eHQ5wi0=; b=M2VsCHLKoEDbiYfk/4dv8F7FaeP1CgIeHCNiSZ7QBz2xHi5Aw1CjZqQh11SI/ti/QeGQdSifo1x7+ BY0f6LeqKX5dhIYGdXAT/us5chIbvzgq9IUOSUTeCknzNMiM6byS8Tw+JszcVFNJmEbi8A4QYgmqq0 eEPn/3yA58y60CmyFcrCZmB5IchuXkbuyEBm9r3WjCHYwuypbUb396VL+f3u6Ft972atydnqQ74ofW ivyXiB0DbfPpKkTAt6PUFf48alyBguuhzB8l0zyQFmRpiYrBkAb/gwzqh+NT3uod8VfvSe9YoJft3B vlVY99HD7jVru60OQ7D4GgXvmZ8qgvg== X-KPN-MID: 33|O0T6t/WI1yBWAcLJSnRJIjV/bgIHSD+KsAVzjfOi4ZA6znxOJNKO5Rw+1De/x5F Auymll2d0Syms3RplZP7qnuAJYPno9s2eogohgnindqA= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|JBewyVVeFKRHMzCZtFL0On3yRgY5tBKfkeek5FBupxM8cfaLjmOIiwFMt2gWsUF cV1sBCVDYYOm/hZMTu9fJ7w== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.106] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id 007b8074-9607-11ee-acaa-00505699d6e5; Fri, 08 Dec 2023 21:18:51 +0100 (CET) Message-ID: <66910cf4-f19d-4400-a90c-adf1bb66a4d7@xs4all.nl> Date: Fri, 8 Dec 2023 21:18:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ntg-context@ntg.nl References: <913fa7c5-a9fc-4edf-909f-f7805e97aaa3@freedom.nl> From: Hans Hagen In-Reply-To: Message-ID-Hash: QBOWZYQWYS2K4OMT5JEKKXG2L5RVVCNO X-Message-ID-Hash: QBOWZYQWYS2K4OMT5JEKKXG2L5RVVCNO 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: mtx-synctex.lua question 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 12/8/2023 7:51 PM, Jim wrote: > Hi Hans (and anyone else interested in synctex), > 282a284,285 >> locate( 0, s) if fi ~= 0 then tl = s ; goto done end >> locate( 0,-s) if fi ~= 0 then tl = s ; goto done end > > and then wrote the following quick and dirty shell script to create log > files for comparison: ok > Admittedly, with the other two directions added in, a more extensive test > (a total of a bit under 14 minutes CPU time on a Ryzen 4700U) showed the > new version is about 0.5% slower, so there is a very minor downside. (I'd > happily spend the extra matches for the minuscule amount of CPU time, but > others may not.) the .5% precen tis no big deal, also because this script is not that time critical (the code could be made a bit faster anyway) so i'll add the few lines so those 14 minutes, was that N times a file or 1 time a huge file? 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 ___________________________________________________________________________________