On 23.12.2016 18:46, Graeme Geldenhuys wrote:
> On 2016-12-23 13:06, Sven Barth wrote:
>> Regular expressions usually have a higher overhead 
> 
> That is not always a given.

You are aware that I wrote "usually" there?

> For many other things, plain code could be faster, but often a lot more
> effort and time consuming to implement. Where as you could have written
> a regex expression in under 10 seconds and accomplish the same task 8
> lines of code or less - very little effort required.

But sometimes the effort vs performance trade of is worth it. E.g.
opening a log file in 10 seconds vs nearly none make a difference (as I
said, I don't remember the exact speed up anymore, but it was
significant; but also not the only problematic point as originally the
opening of a large enough log file took minutes :P ).

Regards,
Sven

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to