On Thursday, June 7, 2018 at 10:59:49 AM UTC-5, Edward K. Ream wrote:
> The culprit is g.is_special:
sc.createAllButtons is another culprit. The offending code is:
for kind, func in table:
if g.match_word(p.h, 0, kind):
func(p)
But this can be replaced a regex, something like this:
m = pattern.match(p.h):
if m:
kind = m.group(1)
func = d.get(kind)
func(p)
This has the potential to speed startup considerably.
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.