On Tue, Jun 9, 2009 at 10:12 PM, Edward K. Ream<[email protected]> wrote:

>> It sets the whole content every time:
>>
>>        contents = w.toHtml()
>>        w.setHtml(contents + '\n')
>
> Yes.  Iirc, I could see no faster way to do the write.

Faster way is to use what we use in body editor, i.e. QTextCursor /
insertHtml. I implemented it that way back in the day, but I think it
was reverted to current behaviour for some reason (I left putnl
unimplemented back then). But I don't remember the details.

> Various commands accumulate output so as to do a single g.es, but that's not
> so easy if you don't know in advance what the complete output will be.

Yeah, and this would be a bad hack anyway. If we can't fix g.es to be
fast (due to having to support something special?), we should probably
add g.es_fast or somesuch ("I don't care how this works, as long as
it's fast!").

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to