[Top][All Lists]

[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 15:08:04 +0200

> From: Lars Ingebrigtsen <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Sat, 07 Feb 2015 23:42:12 +1100
> I've got one question about `vertical-motion': Why is it apparently
> slower than `window-text-pixel-size'?

Because it solves a harder problem.  It is easier to get to a given
buffer position than it is to get to a given pixel X coordinate: in
the latter case you need to start from a position that has a known X
coordinate, so you need first to get there.

But I suggest to time these 2 functions without their shr-* wrappers,
as I'm not sure the difference is so large.

Also, did you invoke vertical-motion from the beginning of a physical
line, or from some place in the middle of the line?

reply via email to

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