The regex stuff is only in the non-SAX code if I remember correctly;
feel free to discard it along with the rest of the non-SAX code.  It
gave me perhaps an 8 second speedup on my 120000+ <v></v> pair .leo
file over the old non-SAX code, and was just a couple seconds faster
than SAX code.

How much memory do you have?  I rely on the python internals to
rapidly reclaim the dictionaries I create, but perhaps there should be
a line of code explicitly discarding the dictionary just before
raising the iteration ended exception.  I'll test that.

There may be some unrecovered overhead cost when you don't have the
deeply cloned environment that I do.

Try creating this 111110 position outline and run some tests on that.

Create node a.  Clone it 9 more times.  10 positions, 10 vnodes, 1
tnode.
Create node b as a child of a.  Clone it 9 more times.  110 positions,
20 vnodes, 2 tnodes.
Create node c as a child of b.  Clone it 9 more times.  1110
positions, 30 vnodes, 3 tnodes.
Create node d as a child of c.  Clone it 9 more times.  11110
positions, 40 vnodes, 4 tnodes.
Create node e as a child of d.  Clone it 9 more times.  111110
positions, 50 vnodes, 5 tnodes.

On Apr 9, 5:30 pm, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
> On Apr 9, 4:24 pm, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
>
> > Hmm. I wonder whether setting use_sax = True is skewing the results...I'll
> > have to check.
>
> No.  It appears to have no effect.  On my machine, unit tests run in
> 130 sec in the trunk, and 136 sec in ekr-devel (merged with thyrsus).
>
> Stephen, please see if you can track down why your code is slower.
> I'd start with the read code.  Thanks.  I'll be reluctant to merge ekr-
> devel into the trunk until we know what is going on.
>
> Edward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to