On Tuesday, 2 January 2018 at 07:17:23 UTC, Uknown wrote:
[snip]
0. Use LDC. It is significantly faster.
1. Utilize the fact that the Mandelbrot set is symmetric about
the X axis.You can half the time taken.
2. Use std.parallelism for using multiple cores on the CPU
3. Use @fastmath of LDC
4.
On Monday, 1 January 2018 at 15:09:53 UTC, Lily wrote:
I started learning D a few days ago, coming from some very
basic C++ knowledge, and I'd like some help getting a program
to run faster. The code is here:
https://github.com/IndigoLily/D-mandelbrot/blob/master/mandelbrot.d
Right now it run
On Monday, 1 January 2018 at 16:47:40 UTC, Adam D. Ruppe wrote:
On Monday, 1 January 2018 at 16:13:37 UTC, Muld wrote:
If you use .ptr then you get zero detection, even in debug
builds.
It is limited to the one expression where you wrote it, instead
of on the ENTIRE program like the build swi
On Monday, 1 January 2018 at 16:13:37 UTC, Muld wrote:
If you use .ptr then you get zero detection, even in debug
builds.
It is limited to the one expression where you wrote it, instead
of on the ENTIRE program like the build switches do.
It is a lot easier to check correctness in an individ
On Monday, 1 January 2018 at 15:54:33 UTC, Adam D. Ruppe wrote:
On Monday, 1 January 2018 at 15:29:28 UTC, user1234 wrote:
dmd mandelbrot.d -O -release -inline -boundscheck=off
-O and -inline are OK, but -release and -boundscheck are
harmful and shouldn't be used. Yeah, you can squeeze a
On Monday, 1 January 2018 at 15:29:28 UTC, user1234 wrote:
dmd mandelbrot.d -O -release -inline -boundscheck=off
-O and -inline are OK, but -release and -boundscheck are harmful
and shouldn't be used. Yeah, you can squeeze a bit of speed out
of them, but there's another way to do it - `.p
On Monday, 1 January 2018 at 15:23:19 UTC, Adam D. Ruppe wrote:
On Monday, 1 January 2018 at 15:09:53 UTC, Lily wrote:
I started learning D a few days ago, coming from some very
basic C++ knowledge, and I'd like some help getting a program
to run faster.
So a few easy things you can do:
1) u
On Monday, 1 January 2018 at 15:09:53 UTC, Lily wrote:
I started learning D a few days ago, coming from some very
basic C++ knowledge, and I'd like some help getting a program
to run faster. The code is here:
https://github.com/IndigoLily/D-mandelbrot/blob/master/mandelbrot.d
Right now it run
On Monday, 1 January 2018 at 15:09:53 UTC, Lily wrote:
I started learning D a few days ago, coming from some very
basic C++ knowledge, and I'd like some help getting a program
to run faster.
So a few easy things you can do:
1) use `float` instead of `real`. real sucks, it is really slow
and
I started learning D a few days ago, coming from some very basic
C++ knowledge, and I'd like some help getting a program to run
faster. The code is here:
https://github.com/IndigoLily/D-mandelbrot/blob/master/mandelbrot.d
Right now it runs slower than my JavaScript Mandelbrot renderer
on the
10 matches
Mail list logo