On Thu, Mar 02, 2000 at 12:09:18PM +0100, Asger K. Alstrup Nielsen wrote:
> > 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.

It depends of the document. If you have a very large file, with lots of
insets, and a weak CPU, you will notice the time for parsing the document.

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

If you want, I can do the changes (and also do the changes I suggested
for layout.C)

Reply via email to