[fpc-pascal] fast text processing
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Oct 31 13:24:10 CET 2007
On 31/10/2007, Vincent Snijders <vsnijders at quicknet.nl> wrote:
>
> Maybe I have a relatively slow computer, so I get more speedup. Keep in mind, that
> disk time is constant.
>
I'm also not sure if FPC compiler parameters where used. I did.
I compiled as: fpc project1.pas
Anyway, here is the Hash Table vs No Hash Table results. Quite a
difference in speed when using the hash table.
graemeg at graemeg:word_parser$ time ./project1_nohashtable
Word count:126944
Unique word count:11793
real 0m0.291s
user 0m0.276s
sys 0m0.004s
graemeg at graemeg:word_parser$ time ./project1
Word count:126944
Unique word count:11793
real 0m0.196s
user 0m0.132s
sys 0m0.008s
graemeg at graemeg:word_parser$ time perl ./project1.perl
Word count: 126944
Unique word count: 11793
real 0m0.292s
user 0m0.268s
sys 0m0.000s
graemeg at graemeg:word_parser$
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list