I don't quite have the money to get the book (i'm still in highschool), i'd
really appreciate it if you could write some code that i can study.

regards, Ahmad

On 8/19/06, Miller, Raul D <[EMAIL PROTECTED]> wrote:

Ahmad Issa wrote:
> I'm trying to plot some of the mandelbrot set. My
> implementation is discouragingly slow, are there
> any faster implementations in J?

Presumably, yes:
http://www.jsoftware.com/jwiki/Books#head-8ca3f3769d7a001e890dcbfef60fb0
8276bce3d6

Inspecting your code, it looks like you've broken the
problem into a bunch of more or less unrelated little
pieces.  To get better performance, you should
eliminate unnecessary steps.  For example, I would
start by eliminating all your ext_* verbs and replacing
them with something which treats the data in an
array fashion (perhaps using inner product or something
of that nature).

Except where this introduces big-O problems, eliminating
extra evaluation steps is one of the more obvious ways to
improve J performance.

--
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to