We had a 250MB file with around 1.5M lines of 170 bytes each.  A TCL
program to read this file in a ~10-line loop with a few if tests, a
handful of string commands (trim, length, compare), and setting an
ns_share array took 365 seconds.  The exact same thing in a 20-line
C program took 40 seconds.  In both cases the file was in memory, so
no significant physical disk I/O was involved.

Doing form.tcl in C probably makes a lot of sense, IMO.

Jim

>
> > I'm going to look into this a bit and see if it actually is the
> > problem.  If so it may help to make form.tcl into a C module to speed
> > things up.
>
> OK, I uploaded a 2 meg file.
>
> It took 11.16 seconds total.  11.12 seconds of that was looking for file
> boundaries.  I simply placed "time" tcl commands at strategic places in
> form.tcl to test this.
>
> Rusty
>

Reply via email to