emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixel-based display functions


From: Eli Zaretskii
Subject: Re: Pixel-based display functions
Date: Sat, 07 Feb 2015 11:42:34 +0200

> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Sat, 07 Feb 2015 20:10:23 +1100
> 
> Eli Zaretskii <address@hidden> writes:
> 
> >> shr-insert-document                  1           3.16461479    3.16461479
> >> shr-vertical-motion                  854         1.4641583980  0.0017144711
> >> shr-pixel-buffer-width               988         0.9732391799  0.0009850598
> >
> > How many lines are there? 
> 
> `shr-fold-line' is called 723 times in that page, which lines up pretty
> well with the `shr-vertical-motion' calls.  `shr-pixel-buffer-width' is
> called (at least) once per <td> in the table.

It looks like your previous timings, viz.

> shr-insert-document                  1           5.11859327    5.11859327
> shr-pixel-buffer-width               1940        1.8345742170  0.0009456568
> shr-fold-lines                       1579        1.7859513240  0.0011310648
> shr-vertical-motion                  2625        1.7517520130  0.0006673341

and

> (benchmark-run 5000 (vertical-motion (cons (/ 700 (frame-char-width)) 0)))
> => (0.942894006 2 0.05716983599999992)

were better, at least as far as vertical-motion was concerned.  What
happened that caused almost twofold degradation in speed of
shr-vertical-motion?  And why does a single call to vertical-motion
take ~0.2 msec, while a single call to shr-vertical-motion takes 1.7
msec, more than 8 times more?

> > And where's that page to begin with?
> 
> http://en.wikipedia.org/wiki/Ocelot
> 
> The torture test part of the page isn't shown by default.  It's the bit
> at the end that says "Extant Carnivora species [Show]".

I don't see "Extant Carnivora species [Show]", I see "Extant Carnivora
species" with "Carnivora" a link to
http://en.wikipedia.org/wiki/Carnivora.  Is that what you meant?  (In
what browser do you see what you described?  I tried eww and Forefox,
and both show what I described.)

Anyway, which part of http://en.wikipedia.org/wiki/Carnivora is the
torture part? the "Phylogenetic tree" part?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]