<div>Hello,<br></div><div><br></div><div>Using gambit 4.6.0 I have a performance problem. It may be my mistake, but I can't see the problem. So I decided to make tests and send them here, so maybe you can point it out.</div>

<div><br></div><div>The program fills a 500x500 array or list with values corresponding to its 2d euclidean distance to a reference point (200,200).</div><div><br></div><div>1.3gz centrino (very old computer)</div><div><br>

</div><div>Filling a 500x500 uchar* in C: 30 ms.</div><div><br></div><div>Filling a 500x500 list in gambit interpreter: ~3200 ms. with two different approaches, both with integer arithmetic. If I use floating points it takes roughly double. Compiling the code drops to ~800ms. still quite high (and I don't usually compile the module when working with it).</div>

<div><br></div><div>what could I do to improve this? is something wrong with my code?</div><div><br></div><div><br></div><div>I attach the two versions.</div><div><br></div><div>Thank you</div><div><br></div><div>Álvaro</div>