POV-Ray : Newsgroups : povray.off-topic : Numeric performance : Re: Numeric performance Server Time
6 Sep 2024 05:13:45 EDT (-0400)
  Re: Numeric performance  
From: Orchid XP v8
Date: 15 Feb 2009 14:15:03
Message: <499869b7$1@news.povray.org>
Severi Salminen wrote:

> Which language? Any example of the code that shows what you are actually
> doing?

If I add up a few thousand 32-bit signed integers, it takes 20 seconds.

If I use double-precision floating-point, it takes 43 seconds.

If I use double-precision, and then convert each number to an integer, 
and then add it to the total, it takes 6 minutes.

I'm wondering whether the hardware is actually that slow, or whether 
this is a performance bug in Haskell's number libraries.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.