ASCII delimited files

Darrell darrell at dorb.com
Fri Nov 12 00:17:30 CET 1999


----- Original Message ----- 
From: Mike Fletcher <mcfletch at vrtelecom.com>
> Okay, here's an entirely different approach, extremely memory intensive,
> fairly fast. 

I'm impressed if you just whipped this up today!
Should it trim the leading empty record ???
I noticed that it returns an additional empty record.

Here's the 'C' version with your tests.

Time for file of 365 bytes
 (5 * testset, 10 records found):
 0.0
Time for file of 3650 bytes
 (50 * testset, 100 records found):
 0.0
Time for file of 36500 bytes
 (500 * testset, 1000 records found):
 0.0160000324249
Time for file of 365000 bytes
 (5000 * testset, 10000 records found):
 0.15600001812
next test may take 15 seconds or so
Time for file of 3650000 bytes
 (50000 * testset, 100000 records found):
 1.89099991322
next test may take 45 seconds or so
Time for file of 10950000 bytes
 (150000 * testset, 300000 records found):
 7.32799994946

--Darrell





More information about the Python-list mailing list