Hi, I uploaded a new version of lmtx. This version uses a new counter and dimension model deep down (\newinteger and \newdimension) which is more efficient in certain cases. From the user's perspective there is no difference between \newcount and \newdimen although there are some fundamental differences. I might have overlooked a few cases where it does make a difference in ConTeXt (easy to handle once I know). The test suite runs 5-10 % faster depending on the load of the machine and the gain mostly relates to memory access (where processes fight over memory and cpu cache). Of course I can probably gain more but using a faster machien than this 5 year old one but why waste a good machine. Some other possible speedups are on-hold till I have better test cases. 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 -----------------------------------------------------------------
On 12/21/22 17:20, Hans Hagen via ntg-context wrote:
[...] Some other possible speedups are on-hold till I have better test cases.
Many thanks for the improvements in the new release, Hans. I have some documents, but I should be reluctant to send longs, because I’m almost confident that my code is poorly written (to say the least). The attachment contains a log for a 72 page document with just text (from XML sources [XHTML generated by pandoc from Markdown file]). [Since attachments over 100KB aren’t allowed, only the last two runs are included in the log file.] With current latest from today, I get: mkiv lua stats > runtime: 2.167 seconds, 72 processed pages, 72 shipped pages, 33.225 pages/second mtx-context | purged files: xml-context.log, xml-context.tuc system | total runtime: 8.779 seconds of 8.818 seconds Exactly the same sources with previous latest (from 2022.12.15): mkiv lua stats > runtime: 2.410 seconds, 72 processed pages, 72 shipped pages, 29.877 pages/second mtx-context | purged files: xml-context.log, xml-context.tuc system | total runtime: 9.310 seconds of 9.350 seconds So, the improvement is clear in current latest. Many thanks again for the improvement, Pablo
participants (2)
-
Hans Hagen
-
Pablo Rodriguez