On Sat, Jul 6, 2013 at 1:49 PM, Ville M. Vainio <[email protected]> wrote:
> Quick observation: Leo feels much faster now (I move around with arrow > keys a lot). > Thanks for these remarks. Leo feels quicker to me too. There is a real chance that all text used to b colored twice: once when the text was loaded and again as the result of an explicit (and unavoidable) call to qsh.rehighlight. For text smaller than 100 lines, the new delayed code will never be called, so the only plausible reason for the quicker feeling is that each line is now colored only once. This speed gain completely overwhelms the loss of speed from the code being written in Python. There is one possible remaining tweak: using the C++ version of QSHP._applyFormatChanges. The Python code should be identical to the original. Otoh, the speed gain would likely be small. Furthermore, it may not be possible to access the private class from Python. Anyway, the present code seems good enough for now. Edward -- 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/groups/opt_out.
