ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: mtx-synctex.lua question
Date: Fri, 8 Dec 2023 21:18:48 +0100	[thread overview]
Message-ID: <66910cf4-f19d-4400-a90c-adf1bb66a4d7@xs4all.nl> (raw)
In-Reply-To: <ZXNlmM+pMYKZt0Je@x360.localdomain>

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
___________________________________________________________________________________

  reply	other threads:[~2023-12-08 20:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07 18:23 [NTG-context] " Jim
2023-12-08 14:03 ` [NTG-context] " Hans Hagen via ntg-context
2023-12-08 15:38   ` Jim
2023-12-08 18:51     ` Jim
2023-12-08 20:18       ` Hans Hagen [this message]
2023-12-08 21:36         ` Jim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66910cf4-f19d-4400-a90c-adf1bb66a4d7@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).