summaryrefslogtreecommitdiff
path: root/doc/context/presentations/context/2017/context-2017-performance.tex
blob: 458a051a5534aaf636e864cefed40e42f8a59899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
\usemodule[present-lines]

\definecolor[maincolor][g=.4,b=.4]

\startdocument[title=Performance,subtitle={\CONTEXT\ 2017 Maibach}]

\startchapter[title=Why bother]

\startitemize
    \startitem because we don't want to waste time waiting \stopitem
    \startitem because I get tired of ignorance related complaints \stopitem
    \startitem because it (sometimes) can be a nice puzzle to improve performance \stopitem
    \startitem because it occasionally reviewing makes code better \stopitem
\stopitemize

\stopchapter

\startchapter[title=Possible bottlenecks]

\startitemize
    \startitem starting up \stopitem
    \startitem loading fonts \stopitem
    \startitem processing features \stopitem
    \startitem applying trickery \stopitem
    \startitem enabling tracing \stopitem
    \blank[2*big]
    \startitem fonts \stopitem
    \startitem \LUA \stopitem
    \startitem images \stopitem
\stopitemize

\stopchapter

\startchapter[title=Measurements]

\startitemize
    \startitem how long does a run take \stopitem
    \startitem how does the number of pages matter \stopitem
    \startitem how many runs are needed \stopitem
    \blank[2*big]
    \startitem start-up time \stopitem
    \startitem processing pages \stopitem
    \startitem finishing the document \stopitem
    \startitem the console used \stopitem
\stopitemize

\stopchapter

\startchapter[title=Examples]

\startitemize
\startitem
    see \goto{onandon-performance.pdf}[file(onandon-performance.pdf)] for timings
\stopitem
\startitem
    you can try \type {--timing} to see where \LUA\ spends it time
\stopitem
\startitem
    analyzing with \type {--profile} can give some indication (but is slow)
\stopitem
\stopitemize

\stopchapter

\stopdocument