[NTG-context] caching buffers?

Hans Hagen j.hagen at xs4all.nl
Fri Apr 12 23:13:48 CEST 2019


On 4/12/2019 11:00 PM, Henning Hraban Ramm wrote:
> Ahoi,
> 
> in my book I use a lot of buffers for examples. These get typeset (compiled) anew on every tex run (i.e. several times per context run). This needs a lot of time and is quite annoying. Is this somehow cacheable, so that it compiles only once per context run or (even better) only if the buffer changed?
> 
> How does the filter module handle this? I know it uses some checksum.
> Should I "outsource" my buffers via t-filter?
> 
> If you need a MWE for this, I’ll assemble one. My actual setup is quite complicated, maybe that’s the problem...
\starttext

     \startbuffer[old-feature]
         % load the relevant environment if needed
         It works!
     \stopbuffer

     \typesetbuffer[old-feature][frame=on,width=4cm]

\stoptext

Only when buffers change they will be retypeset.

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
-----------------------------------------------------------------


More information about the ntg-context mailing list