summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/recipe
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-19 09:58:08 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-19 09:58:08 +0000
commit1440d306a6563aa2acb7698d231adde9bbaff72d (patch)
tree5db4ebbf8a45e27e292443b29b61a8d9340878e4 /Master/texmf-dist/doc/latex/recipe
parent127e73fbc14b134815bfe245d4bca580b2daf520 (diff)
Rework TeXLive::TLPOBJ::from_fh to make it faster and shorter.
- move the code for continued lines to avoid double-testing (34% speed improvement for this change alone) - rm support for continued execute, postaction and depend - use one split rather than many matches to get the command and argument - merge the code for similar lines - flatten the big if-elsif-else structure by moving the 'name first' test - rm useless next statements (they were even slowing things down) - order the big switch by number of occurences - factor out $lastcmd update (not faster, but nicer code IMO) - access $self members directly rather than using methods - call parse_line directly rather than quotewords - misc other tune-ups, inc. preferring split over regexes Overall measured speed improvement: 43% Sub length: 200 -> 130 lines git-svn-id: svn://tug.org/texlive/trunk@22535 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/recipe')
0 files changed, 0 insertions, 0 deletions