Re: need feedback in hashcache branch when loading files
On Tue, Jun 9, 2009 at 10:12 PM, Edward K. Reamedream...@gmail.com 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 leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: need feedback in hashcache branch when loading files
On Wed, Jun 10, 2009 at 2:46 AM, Ville M. Vainio vivai...@gmail.com wrote: On Tue, Jun 9, 2009 at 10:12 PM, Edward K. Reamedream...@gmail.com 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. Ok. I'll look at this again. If I run into problems I'll ask for help before concluding that the QTextCursor approach won't work. 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!). :-) I would much prefer just to make g.es fast. Edward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: need feedback in hashcache branch when loading files
On Wed, Jun 10, 2009 at 9:18 PM, Edward K. Reamedream...@gmail.com wrote: suffices to end the line. Who would have thunk it? To my eyes the log is zippier now. What do you think? It's much faster now. run this script in old new code: for i in range(1000): g.es(i) You'll see it used to get slower and slower as stuff piles up, in linear fashion (for obvious reasons). In essence, leo got slower and slower as time passed. -- 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 leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
need feedback in hashcache branch when loading files
Seems the hashcache branch no longer provides feedback on the log pane, even when loading for the first time (no cache)? Cheers -Terry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: need feedback in hashcache branch when loading files
On Tue, Jun 9, 2009 at 9:24 PM, Terry Brownterry_n_br...@yahoo.com wrote: Seems the hashcache branch no longer provides feedback on the log pane, even when loading for the first time (no cache)? Fixed in bzr (g.es provided for slow read). g.es is *very* slow btw. It sets the whole content every time: contents = w.toHtml() w.setHtml(contents + '\n') -- 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 leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: need feedback in hashcache branch when loading files
On Tue, Jun 9, 2009 at 1:43 PM, Ville M. Vainio vivai...@gmail.com wrote: Fixed in bzr (g.es provided for slow read). g.es is *very* slow btw. 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. 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. Edward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---