Abdelrazak Younes wrote:

> Quite frankly I am not very confident that you can achieve the same
> performance as the internal Clipboard.

I did not aim for that. And note that I currently have a lot of debug
output, and also some unneeded conversions string -> stringstream ->
string, so I believe that Bennets numbers are not bad. I would have
expected worse numbers.

> You are putting in the chain 
> lyx2lyx parsing + lyx format parsing which is known to take some time.

lyx2lyx only if the format is not recent, so lyx2lyx will not be called if
this is used as a workaround on the Mac. And according to Andre LyX format
parsing is fast.

> Right now, I can copy and paste the full UserGuide.lyx into another
> document without _any_ delay. I doubt this would ever be possible with
> your solution.
> 
> Moreover, we have now the multiple view feature so we don't need this
> feature anymore.

I strongly disagree. First, the multiple view feature is still not finished,
and AFAIK it is still not decided whether it will be made visible in 1.5.0
or not.

Second, I usually start several instances of LyX for several documents. This
has the advantage that if one instance crashes the other ones do still
live, and I don't have to load the ither documents again. Sometimes one
instance is even running on another machine, e.g. when I am prerparing
large lecture notes that need to be compiled often and take some time.

> If we are going that route then I would prefer that you use binary dump
> of the internal structure instead.

I already explained that I expect several problems with that and why I am
not going to do that.

> Sorry for not being optimistic about this. Moreover I really think that
> the Clipboard/Selection stuff is OK right now for 1.5, the Mac problem
> can be cured without this hammer solution IMHO.

It can be cured with a workaround, yes. To me it looks far better to use
this patch:

- It has the advantage of increased interoperability
- Mac users with a working QCliboard::ownsClipboard() will automatically use
the fast internal version. The workaround would probably not allow that,
since testing for it would

I agree with you that clipboard/selection is OK for 1.5.0 (almost; I'll
write a summary later). My reasons for finishing this patch where simply:

- It was lying around here unfinished for over a year, and I wanted to have
that since ages
- It solves the Mac problem without the need to invent another workaround.


Georg

Reply via email to