Coding Challenges - Dlang or Generic
matheus
matheus at gmail.com
Wed Jan 18 11:20:11 UTC 2023
On Wednesday, 18 January 2023 at 04:51:11 UTC, Salih Dincer wrote:
> On Tuesday, 17 January 2023 at 21:50:06 UTC, matheus wrote:
>> Have you compared the timings between this way (With ranges)
>> and a normal way (Without ranges)?
>
> Of course it is possible to speed it up. However, even as it
> is, it is enough to see the power of intervals. I would argue
> that you'll get fast results even with DMD Compiler!
>
> ```d
> ...
Well I'll need to check this, because your version is slightly
different than mine and this one
(https://github.com/quickfur/dcal/blob/master/dcal.d), It prints
only one column. I'll change mine to do this and compare, I can't
do this right now because I'm at work.
But unfortunately I can't use xTest = 1200 on these online
compilers, only 10 or they will stop.
Could you please run your version vs mine (Changing to print one
column, line 70: draw_year(2023,1); ) and tell us the result?
Matheus.
More information about the Digitalmars-d-learn
mailing list