Skip to content

Deferred initialization of PS doesn't work #262

Closed
@user202729

Description

@user202729

In the source code there's this comment:

/** Initializes the PostScript handler. It's called by the first use of process(). The
 *  deferred initialization speeds up the conversion of DVI files that doesn't contain
 *  PS specials. */

Nevertheless, it doesn't work right now and we incur a performance penalty of about 50ms (i.e. the program is 50ms slower than if the deferred initialization were working). (for a simple file on my machine total runtime is 100ms, with the optimization implemented it will be reduced by 50%)

Test: (any simple file will work)

pdflatex -jobname=d --output-format=dvi << 'EOF'
\documentclass{article}
\begin{document}
hello world
\end{document}
EOF

dvisvgm d.dvi

Metadata

Metadata

Assignees

Labels

enhancementimprove existing functionality

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions