ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* caching buffers?
@ 2019-04-12 21:00 Henning Hraban Ramm
  2019-04-12 21:13 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2019-04-12 21:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: caching buffers?
  2019-04-12 21:00 caching buffers? Henning Hraban Ramm
@ 2019-04-12 21:13 ` Hans Hagen
  2019-04-12 21:35   ` Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2019-04-12 21:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: caching buffers?
  2019-04-12 21:13 ` Hans Hagen
@ 2019-04-12 21:35   ` Henning Hraban Ramm
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2019-04-12 21:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-04-12 um 23:13 schrieb Hans Hagen <j.hagen@xs4all.nl>:

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

I used the same buffer name all the time.
Sorry for the noise.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-12 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12 21:00 caching buffers? Henning Hraban Ramm
2019-04-12 21:13 ` Hans Hagen
2019-04-12 21:35   ` Henning Hraban Ramm

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