publications-performance.tex /size: 2021 b    last modification: 2020-07-01 14:35
1\environment publications-style
2
3\startcomponent publications-performance
4
5\startchapter[title=Performance]
6
7The move from external \BIBTEX\ processing to internal processing has the
8advantage that we stay within the same run. In the traditional approach we had
9roughly the following steps:
10
11\startitemize[packed]
12\startitem
13    In the first \CONTEXT\ run information is collected and written to file.
14\stopitem
15\startitem
16    fter the first run the \BIBTEX\ program converts that file to another
17    one, a so called \type {bbl} file with \TEX\ commands.
18\stopitem
19\startitem
20    Successive runs use that file for typesetting references and producing
21    lists of publications that are reffered to.
22\stopitem
23\stopitemize
24
25In the \MKIV\ approach the bibliographic database is loaded in memory each run
26and processing also happens each run. On paper this looks less efficient but as
27\LUA\ is quite fast, in practice performance is much better.
28
29Probably most demanding is the treatment of authors as we have to analyze names,
30split multiple authors and reassemble firstnames, vons, surnames and juniors.
31When we sort by author sorting vectors have to be made which also has a penalty.
32However, in practice the user will not notice a performance degradation. We did
33some tests with a list of 500.000 authors, sorted them and typeset them as list
34(producing some 5400 dense pages in a small font and with small margins). This is
35typical one of these cases where using \LUAJITTEX\ saves quite time. On my
36machine it took just over 100 seconds to get this done. Unfortunately not all
37operating systems performed equally well: 32 bit versions worked fine, but 64 bit
38\LINUX\ either crashed (stalled) the machine or ran out of memory rather fast,
39while \MACOSX\ and \WINDOWS\ performed fine. In practice you will never run into
40this, unless you produce massive amounts of bibliographic entries. \LUAJIT\ has
41some benefits but also some drawbacks. In practice you will not run into these
42problems.
43
44\stopchapter
45
46\stopcomponent
47