[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] How texmacs is so slow for my macro
From: |
Sam Liddicott |
Subject: |
[Texmacs-dev] How texmacs is so slow for my macro |
Date: |
Mon, 04 Apr 2011 08:00:47 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17pre) Gecko/20110402 Lanikai/3.1.10pre |
Texmacs is very slow for my literate programming macros which use custom
lists.
I've pinned the problem down to the assignment of item-nr. Each named
code-chunk can appear in multiple chunklets and has it's own line
counter that is shared across all chunklets, so I assign item-nr to
contain the counter-so-far before I render the list. (BTW I wish html
export also recognized that item-nr may not start at 1):
Assigning item-nr as shown below makes things slow.
<with|...|item-nr|<value|<merge|code-line-|<value|nf-name>|-nr>>|
...
<render-list|<arg|body>>
...
>
Alternatively, if item-nr is assigned to a literal numeric value, like this:
<with|...|item-nr|29|
...
<render-list|<arg|body>>
...
>
then everything is fast.
I expect I need to do magic with eval and quasi and so on, but no amount
of guessing has worked yet. I think I know that <with...> encloses all
assignments in <quote> so I tried using <assign> instead with various
incantations of quasi and eval but without success.
I need a master to give me a tip on this.... how can I early evaluate
<value|<merge|code-line-|<value|nf-name>|-nr>> to become a numeric value?
Sam
- [Texmacs-dev] How texmacs is so slow for my macro,
Sam Liddicott <=
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/04
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/04
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/06
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/06
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/06
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/07
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Gubinelli Massimiliano, 2011/04/07
- Re: [Texmacs-dev] How texmacs is so slow for my macro, Sam Liddicott, 2011/04/09