|
From: | Sam Liddicott |
Subject: | Re: [Texmacs-dev] How texmacs is so slow for my macro |
Date: | Wed, 06 Apr 2011 14:11:37 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17pre) Gecko/20110404 Lanikai/3.1.10pre |
I've simplified the whole deal with a new definition of list that does not reset item-nr to 0:
<assign|list|<macro|item-render|item-transform|body|<with|current-item|<arg|item-render>|transform-item|<arg|item-transform>|<render-list|<arg|body>>>>> <\enumerate> <item>one <item>two <item> <item>three <item>four </enumerate> hello joe <value|item-nr>the enumerate and "hello joe" line can be repeated a few thousand times to bring the same problem.
I guess it is because the texmacs document is a program. When a change is made, it has to be re-executed in it's entirety unless it that can be optimised out.
In some cases for me, though, the counter is never re-used again after the environment instance in which the new line is being inserted, so it could be optimised out...
So I need to talk to someone on the nature of these optimisations (if I am right).
Sam
[Prev in Thread] | Current Thread | [Next in Thread] |