context-2017-performance.tex /size: 1726 b    last modification: 2020-07-01 14:35
1\usemodule[present-lines]
2
3\definecolor[maincolor][g=.4,b=.4]
4
5\startdocument[title=Performance,subtitle={\CONTEXT\ 2017 Maibach}]
6
7\startchapter[title=Why bother]
8
9\startitemize
10    \startitem because we don't want to waste time waiting \stopitem
11    \startitem because I get tired of ignorance related complaints \stopitem
12    \startitem because it (sometimes) can be a nice puzzle to improve performance \stopitem
13    \startitem because it occasionally reviewing makes code better \stopitem
14\stopitemize
15
16\stopchapter
17
18\startchapter[title=Possible bottlenecks]
19
20\startitemize
21    \startitem starting up \stopitem
22    \startitem loading fonts \stopitem
23    \startitem processing features \stopitem
24    \startitem applying trickery \stopitem
25    \startitem enabling tracing \stopitem
26    \blank[2*big]
27    \startitem fonts \stopitem
28    \startitem \LUA \stopitem
29    \startitem images \stopitem
30\stopitemize
31
32\stopchapter
33
34\startchapter[title=Measurements]
35
36\startitemize
37    \startitem how long does a run take \stopitem
38    \startitem how does the number of pages matter \stopitem
39    \startitem how many runs are needed \stopitem
40    \blank[2*big]
41    \startitem start-up time \stopitem
42    \startitem processing pages \stopitem
43    \startitem finishing the document \stopitem
44    \startitem the console used \stopitem
45\stopitemize
46
47\stopchapter
48
49\startchapter[title=Examples]
50
51\startitemize
52\startitem
53    see \goto{onandon-performance.pdf}[file(onandon-performance.pdf)] for timings
54\stopitem
55\startitem
56    you can try \type {--timing} to see where \LUA\ spends it time
57\stopitem
58\startitem
59    analyzing with \type {--profile} can give some indication (but is slow)
60\stopitem
61\stopitemize
62
63\stopchapter
64
65\stopdocument
66