
25 Dec
2008
25 Dec
'08
5:21 a.m.
Aai пишет:
Hi Bulat,
That I (can) understand, but of course the main question is: is point free in (some/several/all) cases faster than the more readable lambda construction? That's to say when executed in GHCi. I noticed this behavior before (pity I haven't other examples at hand). In prog. lang. J ( http://www.jsoftware.com/index.html ) I see the same behavior difference with tacit (like point free) and explicit programming: tacit being faster in several (not all) occasions.
You should write cleanest code. Optimize only when absolutely necessary (and in this case you'll definetly will use a compiled version instead of interpreted). -- WBR, Max Vasin.