[Jax.PM] ~9M lines of data

William C (Bill) Jones wcjones at fccj.edu
Mon Oct 14 14:25:59 CDT 2002


On 10/14/02 1:44 PM, "greg at turnstep.com" <greg at turnstep.com> wrote:

>> if (/^\#\sDumpings\datas\for\stable\s\'/) {
> 
> Seems like overkill, since we know exactly what the line will be.
> This also applies to the CREATE TABLE line above as well. No sense in
> stressing the regex engine. Matter of fact, we can probably use the
> far more efficient index() since we know the exact placement. If we can
> avoid calling the regex engine at all, even better.

"Dumpings\datas\" is invalid anyways - I should have wrote:

    Dumping\sdata\s  :/  :)


> ## My rewrite. It may not do what you want, as I am not exactly sure of the
> ## program requirements (e.g. newlines)
> 

I am playing with your code as of this writing - it even looks better than
mine :)

---Sx------------------------------------------------------
Three virtues of programming: laziness,  impatience, hubris
Three virtues of community  : diligence, patience, humility
                              -- Larry Wall, Author of perl





More information about the Jacksonville-pm mailing list