On Thu, Nov 10, 2005 at 04:22:47PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
> 
> Martin> So... can this go in?
> 
> Since there is a suspicion that the code is going to be slow, it would
> be better to write it to be faster, like (untested):
> 
> +     ParagraphList::const_iterator it = pars_.begin();
> +     ParagraphList::const_iterator const end = pars_.end();
> +     while (it != end && &(*it) != &par)
> +              ++it;
> +
> +     // Realize against environment font information
> +     if (iit != end)
> +             font.realize(outerFont(pit, pars_));
> +     
> 
> Of course, profiling would be interesting too :)

Why would that be faster (I'm happy to comply, but why?)?

BTW I loaded the user guide, and noticed no slow down even towards the
end when going into lists envs.

- Martin

Attachment: pgpG6owg7JNGD.pgp
Description: PGP signature

Reply via email to