Subject: bug#56815: 29.0.50; Isearch lazy-highlight highlights too much when truncate-lines is in effect

From: Eli Zaretskii <[email-masked]>
Date: Fri, 29 Jul 2022 22:36:25 +0300

> Cc: [email-masked], [email-masked], [email-masked]
> Date: Fri, 29 Jul 2022 22:31:22 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > (benchmark-run 1000 (pos-visible-in-window-p 310000)) takes 4 seconds
> > 
> > (benchmark-run 1000 (numberp (cadr (posn-at-point 310000)))) takes 6 seconds
> 
> Why does it matter how long pos-visible-in-window-p takes when it
> cannot tell whether the position is visible?

Actually, it can: you just need to call it with the 3rd argument
non-nil.