On 8/9/2015 11:48 AM, Javier Bezos wrote:
Hi all,

I have a couple of (unrelated) questions:

- What is the logic behind the idea of preloading some data in the
   format with luatex?

I'm not sure what you mean here but if you're talking about the format file the main argument is speed. Loading a mem dump is much faster than locating and loading files each run. This really matters when working on network shares and/or in high performance (read many runs) workflows. Of course in an edit-preview workflow it also helps to limit the time. But one can of course start in ini mode each time and load the macros each time.

For patterns it makes sense to load them runtime (1) because it's just one or a few files, (2) because internally luatex does the same i.e. parses the stored data.

For traditional fonts it depends: if one only uses one font family preloading can help, otherwise there is no gain. For opentypefonts preloading is irrelevant because they are cached and load fast (the fontloader doesn't store the lua tables in the format and that is unlikely to happen).

Anything related to lua: you need to make sure that whatever you preload gets initialized well (an din order) so there one can decide to delay loading till runtime.

- Is there any convention as how hyphenation files should be named?
   Apparently most of them follow the pattern (load)hyph-LL (LL
   = lang iso code) and (load)hyph-LL-SSSS (SSSS = script iso code),
   but not all. (And of course, the encoding in the form .ec.)

In most cases this is macro package dependent (as each can have their own demands).

Hans

ps. Creating a context format with luajittex takes some 2.5 sec (2 sec with no terminal output) of which .2 sec is format dumping. Stripped from some serialization code we can do a runtime load in 1.5 sec. A zero run is less than .3 sec so we gain 1.2 sec with a format. That's on a pretty fast i7 extreme notebook processor with ssd. On a network share timing is of course different. We don't preload patterns.

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

Reply via email to