<html>
<head>
</head>
<body>
Bob, <br>
<br>
&nbsp;&nbsp;&nbsp; First, my mistake. It took 12 minutes for 100K entries (thanks for finding
this out)<br>
&nbsp;&nbsp;&nbsp; Second, for 10K entries it consumed +3M.<br>
<br>
&nbsp;&nbsp;&nbsp; The real case was with a 450M file (not 1.8M as the 10K demo produces)
with 18M lines. I _afraid_ to measure it on squeak because it will hang my
computer for a long long while even if I'll find a machine with 750MB (450/1.8
* 3) of free RAM.<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Yoel<br>
<br>
Bob Arning wrote:<br>
<blockquote type="cite" cite="mid:200201290928.EAA05224@fellspt.charm.net">
  <pre wrap="">On Tue, 29 Jan 2002 09:39:54 +0200 Yoel Jacobsen <a class="moz-txt-link-rfc2396E" href="mailto:yoel@emet.co.il">&lt;yoel@emet.co.il&gt;</a> wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">The attached file is an almost empty LDAPObject class with fromStr: class method only. This method parse a single LDIF entry. Look the the class information for the commands to create a 10K lines LDIF file and to parse it.<br><br>Parsing 10K lines took me about 12 minutes in which the image was working on this as a single task. Profiling shoes the time is mostly spent on adding to collections.<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>On Tue, 29 Jan 2002 01:12:08 -0700 Jon Hylands <a class="moz-txt-link-rfc2396E" href="mailto:jon@huv.com">&lt;jon@huv.com&gt;</a> wrote:<br></pre>
    <blockquote type="cite">
      <pre wrap="">I filed your code into a 3.1 image (3828), and it took 11.8 seconds to<br>parse the 10,000 lines...<br></pre>
      </blockquote>
      <pre wrap=""><!----><br>Yoel,<br><br>If you really mean 12 *minutes*, then something is slowing you down big-time. Your test case is going to consume over 10M of memory while running. Could you be short of real memory available to squeak? If you change your test to do<br><br>        MessageTally spyOn: [<br>                blocks _ lines findBetweenSubStrs: { crcr  }.<br>                objs _ blocks collect: [ :bl | LDAPObject fromStr: bl ].<br>        ].<br><br>What do you get at the end of the report? How does it differ from this:<br><br>**Memory**<br>        old                        +10,229,352 bytes<br>        young                -1,790,776 bytes<br>        used                +8,438,576 bytes<br>        free                -8,438,576 bytes<br><br>**GCs**<br>        full                        0 totalling 0ms (0.0% uptime)<br>        incr                467 totalling 1,878ms (13.0% uptime), avg 4.0ms<br>        tenures                220 (avg 2 GCs/tenure)<br>        root table        0 overflows<br><br>Cheers,<br>Bob<br><br><br></pre>
      </blockquote>
      <br>
      </body>
      </html>