howto count lines - fast
Russel Winder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 31 16:20:53 PDT 2017
On Tue, 2017-05-30 at 17:22 -0700, H. S. Teoh via Digitalmars-d-learn
wrote:
> […]
> performance in a significant way. But I thought this might be a
> useful
> tip for people who want to squeeze out the last drop of juice from
> their
> CPUs. ;-)
>
[…]
I have the beginnings of wc written in various languages. I may well
follow this thread up to create a full D implementation of wc that
people can then optimise a bit.
However, I note here that the Chapel folk are taking a quite
interesting view of algorithm implementation in the Benchmarks Game.
They are totally eschewing "heroic implementations" such as all the C,
C++, etc. in favour of understandable and simple ones. Their take on
raw performance is "if you need it to go faster, use a bigger
computer". Which is quite easy when you have a number of Cray computers
at your disposal. :-) Whilst having some fun, the Benchmark's Game has
become all about heroic implementations on a specific computer. Which
makes the Chapel line an excellent one.
OK for wc the case is different because it is about performance on the
users computer. But still I like the "keep the implementation
comprehensible, avoid heroic implementation".
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170601/ff8848d2/attachment-0001.sig>
More information about the Digitalmars-d-learn
mailing list