On 11/15/2021 6:24 AM, Rik Kabel via ntg-context wrote:
Hello list,
Can anyone provide a description of, or a point to a description of, the
differences between setups= and directsetup= for including setups? I
searched the list archive and the documents and found nothing. (That may
indicate my level of search foo, but nonetheless I am in need of help
with this.)
\setup : takes a list ({...} or [...])
\directsetup: supports gridsnapping, only one setup
\fastsetup : the fastest, only one setup
concerning performance, i wonder if you'll notice it
\starttext
\startsetups test
\stopsetups
\testfeatureonce{100000}{\setup {test}} \elapsedtime \par
\testfeatureonce{100000}{\setup [test]} \elapsedtime \par
\testfeatureonce{100000}{\directsetup{test}} \elapsedtime \par
\testfeatureonce{100000}{\fastsetup {test}} \elapsedtime \par
\stoptext
because often what's done in the setup is taking the time, just test
\startsetups test
{\bf}
\stopsetups
you can volunteer to wikify it
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
___________________________________________________________________________________