On Mon, 20 May 2013 14:33:49 -0500
Terry Brown <[email protected]> wrote:

> The search function is proving a lot harder than the Leo outline based
> introspector, which only descends into nodes when you explicitly ask it
> to.

Hmm, here's the latest output:

for insertIconFromFile

  c.editCommands.insertIconFromFile

ok, great... for getSelectedText

  c.miniBufferWidget.getSelectedText
  c.abbrevCommands.w.getSelectedText
  c.bufferCommands.w.getSelectedText
  c.chapterCommands.w.getSelectedText
  c.controlCommands.w.getSelectedText
  c.debugCommands.w.getSelectedText
  c.editCommands.w.getSelectedText
  c.editFileCommands.w.getSelectedText
  c.frame.body.getSelectedText
  c.frame.log.getSelectedText
  c.frame.miniBufferWidget.getSelectedText
  c.gui.bodyTextWidget.getSelectedText
  c.helpCommands.w.getSelectedText
  c.k.w.getSelectedText
  c.keyHandlerCommands.w.getSelectedText
  c.killBufferCommands.w.getSelectedText
  c.leoCommands.w.getSelectedText
  c.macroCommands.w.getSelectedText
  c.miniBufferWidget.__class__.getSelectedText
  c.rectangleCommands.w.getSelectedText
  c.registerCommands.w.getSelectedText
  c.searchCommands.w.getSelectedText
  c.spellCommands.w.getSelectedText

but this takes a really long time, I need to work out what's the
bottleneck.  It searches breadth first, and searches to the depth n+1
where n is the depth at which it finds the first hit.

Of course those searches were started at 'c' - perhaps you need to
start a little more specifically, but there are 551 ivars on c... so
that's not that easy.  Ahem, including 

  universalCallback instancemethod
  universallCallback instancemethod 

Cheers -Terry

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to