On Sat, Jun 6, 2015 at 10:08 AM, 'Terry Brown' via leo-editor < [email protected]> wrote:
> On Fri, 5 Jun 2015 11:01:13 -0500 > "'Terry Brown' via leo-editor" <[email protected]> wrote: > > > Well, I'm definitely seeing Todo.py related slow down, and will > > attempt to investigate that. > > Just pushed a fix for this. w.setStyle("/* */") was being called on > every node, and is just too slow for that :-/ Now it's called on idle, > which was tricky > [snip] > Thanks for this. Here is what I think I know about loading large text. 1. Syntax coloring: At present, the Python colorizer is enabled in leoColorizer.py. That is, python_qsh = True. This switch enables idle-time colorizing of the text, so the length of text shouldn't matter. 2. Waiting for large text to load. Qt has major issues with large text. This should not cause problems if the user doesn't try to change the text. The setting, @int max-pre-loaded-body-chars = 30000, controls whether Leo will insert so-call "large-text buttons" for body text greater than the given value. (The value of 0 disables the feature). I doubt whether much more can be done to speed loading of large text. The normal workaround is to split large nodes. HTH. EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
