Java > Scala

Marco Leise Marco.Leise at gmx.de
Thu Dec 1 23:52:59 PST 2011


Am 01.12.2011, 21:29 Uhr, schrieb Jesse Phillips  
<jessekphillips+D at gmail.com>:

> On Thu, 01 Dec 2011 19:54:48 +0100
> "Marco Leise" <Marco.Leise at gmx.de> wrote:
>
>> Ok, so this is how you can optimize the program.
>
> Actually these suggestions weren't about optimization. Bearophile is
> big on consistency and style. For example you don't use the built in
> sort because it should not exist, and std.algorithm.sort returns a
> SortedRange which will then be usable by other functions
> (std.algorithm.find) to use a faster algorithm (bubble search).
>
> So basically, do it the D way, then it will be easier to look at
> improving performance. One statement I liked from, I believe, Andrei
> was "the easy way should be the right way, and the [wrong way] should be
> possible" not an exact quote and "wrong way" was actually something
> else.

Stopping the GC is hardly just doing it the D way, but I get your point.


More information about the Digitalmars-d mailing list