On Sat, Jan 14, 2006 at 11:12:28AM +0100, Lars Gullik Bjønnes wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > | On Fri, Jan 13, 2006 at 06:01:52PM +0200, Martin Vermeer wrote: > | > | > ...that the method bruteFind() in cursor.C searches the *whole > | > document*, i.e., *every single character position*, for the best place > | > to drop the cursor! > | > > | > This causes a noticeable slowness (several seconds!) when exiting some > | > formulas in the User Guide. > | > > | > How to make it faster? The attached doesn't really help much, because > | > forwardPar() still calls forwardPos() internally for every character. > | > | The attached helps a lot, and is "low hanging fruit". > | > | Does anyone see a problem with this? Please give it some testing. Works > | OK for me. > > If this is the brue find functin, then yes. I belive the idea with the > brutefind was to not play any tricks at all, but to do scan through > every element in the doc.
But the problem is that this gets called *every* time you try to exit a math inset by up or down arrow. Then these calls must be fixed somehow. (The delay is really unbearable) - Martin
pgpAgTGbgX6PK.pgp
Description: PGP signature