[fpc-pascal] fast text processing
Vincent Snijders
vsnijders at quicknet.nl
Wed Oct 31 13:59:56 CET 2007
Marco van de Voort schreef:
> [ Charset ISO-8859-1 unsupported, converting... ]
>>> I had never used Perl before. Until someone showed me Perl is very fast
>>> for text processing (using its powerful regex), despite it's an
>>> interpreted language. It even beat Delphi and FPC though both are
>>> compiled language. A few lines Perl program almost two times faster than
>>> a few pages pascal program.
>> Alright everyone. The answers are enough. Now I can say confidently that
>> pascal (fpc v.2.2) is FASTER than Perl, including in text processing. ;)
>>
>> Thank you very much to everyone who involves in this thread. :)
>
> I don't think that everybody that saw:
>
> http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all&calc=Calculate&xfullcpu=1&xmem=0.5&xloc=0&binarytrees=1&chameneos=0&message=0&fannkuch=1&fasta=1&knucleotide=1&mandelbrot=1&meteor=0&nbody=1&nsieve=1&nsievebits=1&partialsums=1&pidigits=1&recursive=1®exdna=1&revcomp=1&spectralnorm=1&hello=0&sumcol=1
>
> ever doubted that.
But people who have seen
http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=all
may have doubted that.
I wonder where fpc would end up in that list,
A: if it uses its own regexpr parser (atm not good enough)
B: if it uses Jeff's header translations for pcre
Vincent
More information about the fpc-pascal
mailing list