← Back to team overview

calibre-devs team mailing list archive

Re: CSS normalization

 

On Mon, Jan 26, 2009 at 4:29 AM, Kovid Goyal <kovid@xxxxxxxxxxxxxx> wrote:

> Ah, I get it now. What's the performance like, since this algorithm will
> require a lot of XPath queries?

It could be faster, but it's not *that* slow -- XPath is really quite
fast.  In fact, the XPath part is re-done in each separate
Stylizer-using transform in the LIT and Mobipocket generation
pipelines. (The CSS and/or the markup changes at each step, so the
current styles need to be re-calculated.)

Later today or this evenindI'll put together a few 'timeit' tests for
comparison with the current approach.

-Marshall



Follow ups

References