POV-Ray : Newsgroups : povray.unofficial.patches : Poly is slower in megapov than in the official pov? : Re: Poly is slower in megapov than in the official pov? Server Time
2 Sep 2024 10:18:47 EDT (-0400)
  Re: Poly is slower in megapov than in the official pov?  
From: Nieminen Juha
Date: 15 Feb 2000 05:02:49
Message: <38a92449@news.povray.org>
Well, I was wrong. There's no difference in speed if using #defined
integers or an enum type.
  I made a program that generates two programs, one with 5000 #defines and
another with an enum of 5000 items. Then the program loops through all
those 5000 values 100000 times (ie. 500000000 loops in total) with a
switch-structure inside (each branch adds a value to a variable).
  There's no remarkable difference in speed between the two.

  (I can post the source code of the program if anyone wants it...)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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