]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2425: Don't reload initialization files when processing multiple files
authorDavid Kastrup <dak@gnu.org>
Wed, 21 Mar 2012 18:57:46 +0000 (19:57 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 26 Mar 2012 08:15:24 +0000 (10:15 +0200)
commite9f23376b8bac1ae6b776d944469712c983e844c
treecef8548a3259f1a8993b2f7e5a8482384cac5e34
parent37e77427af1a69887e2ebafd1c51a79fadff5c2a
Issue 2425: Don't reload initialization files when processing multiple files

This significantly speeds up processing of multiple files per session,
but has some more potential for bleedover between files.

Bleedover can occur when data structures set up by init.ly (and the
loaded files) in the parser module before calling the main file are
modified in-place.

init.ly caters for the known cases: some hash tables modified by user
commands are cleared at the start of a new pass, and output
definitions are cloned rather than reused from the first load of
init.ly.
ly/init.ly
scm/lily.scm