emacs-devel
[Top][All Lists]
Advanced

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

[RFC] position caches


From: Dmitry Antipov
Subject: [RFC] position caches
Date: Tue, 12 Mar 2013 11:56:26 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

This was designed in attempt to avoid long buffer scans in 
bidi_find_paragraph_start.
The same stuff may be used to implement simple per-buffer charpos <-> bytepos 
cache.
Caching the result of bidi_find_paragraph_start may improve the speed of 
backward
scrolling/movement (I've seen ~6x speedup for 60M buffer with average string of 
5K
characters). Comments are highly appreciated.

Dmitry

Attachment: pos_cache.patch
Description: Text document


reply via email to

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