Sorry, mixed the patch with the marker patch. Here it is again

Stefan

Attachment: mathmacrospeedup.patch
Description: Binary data



So here is a working patch for 1.5svn. I also attached an example file. Try it out with the patch and without. It is a lot faster. Scrolling around in the macro without the patch is nearly impossible.

Moreover I did some minor cleanup of the code, especially setting up the coordinate cache. I am pretty sure that without this can lead to crashes if your macros do not mention all the arguments.

And a last fix included makes sure that the metrics are always in sync with the drawing. Before it was possible to go into the macro with the cursor in a way that the metrics were for the viewing mode, but the drawing was done for editing.

Stefan

<mathmacrospeedup.patch>
<extrememacro.lyx>

Stefan Schimanski wrote:
Here is a quick patch. Haven't checked it much, though.

I think this is a good candidate for RC1.

Stefan?


Stefan
Am 16.05.2007 um 18:55 schrieb Abdelrazak Younes:
[EMAIL PROTECTED] wrote:
Author: sts
Date: Wed May 16 18:52:26 2007
New Revision: 18371
URL: http://www.lyx.org/trac/changeset/18371
Log:
* more cleanup
* optimisations:
  * do not lookup the same macro all the time
* only update the representation if anything was changed (this gives a huge speedup)

Could this speedup be backported to trunk? I tried to optimized this very thing a while ago (there's a bugzilla entry about that) but failed.

Abdel.




Attachment: PGP.sig
Description: Signierter Teil der Nachricht

Reply via email to