> Dekel> However, the real problem lies on parsing .lyx files at
> Dekel> Buffer::readLyXformat2 which is done using if-else statements
> Dekel> (... else if (token == "\\emph") ... ) This is very
> Dekel> inefficient!
> 
> Yes, this code should use LyxLex correctly.

Actually, this is not a real problem at all.
The bottleneck at load time is the rendering of the figures and
of the document, not the parsing of the LyX document.

You can assert this for yourself by loading the user guide.
As soon as the program says "Formatting" or "Loading font",
the raw loading part is over.  You have to be fast to see it,
though.

So: There is no reason to change this.  So much else to do.

Greets,

Asger

Reply via email to