A simple sieve in Phobos?
Meta
jared771 at gmail.com
Tue Mar 18 21:06:35 PDT 2014
On Wednesday, 19 March 2014 at 01:52:07 UTC, bearophile wrote:
>> nor to contain the most optimized algorithms around.
>
> This D1 code adapted from C code is much more efficient (and in
> D2 with ranges and TypeTuple-foreach it could become more
> efficient and much shorter), but I think something like this is
> overkill for Phobos:
>
> http://dpaste.dzfl.pl/cf97d15ade27
>
> Bye,
> bearophile
If all that complexity is nicely encapsulated from the user, then
why not put it in some theoretical Phobos package? Are you
thinking of highly-optimized functionality that makes a usability
tradeoff to be even faster?
More information about the Digitalmars-d
mailing list