POV-Ray : Newsgroups : povray.unofficial.patches : PovRay faster : Re: PovRay faster Server Time
2 Sep 2024 00:19:09 EDT (-0400)
  Re: PovRay faster  
From: Francois Labreque
Date: 4 Feb 2001 09:09:39
Message: <3A7D61E8.7AC8AA0C@videotron.ca>
Daniel Jungmann wrote:
> 
> general things which can be optimized
> 
> 3) if then / ? :

Apart from "looking cooler", is there any benefit to using the ternary
operator?  Is it really faster than an "if then else" statement?  I was
under the impression that most compilers would produce identical code
underneath.

-- 
Francois Labreque | The surest sign of the existence of extra-
    flabreque     | terrestrial intelligence is that they never
        @         | bothered to come down here and visit us!
  videotron.ca                                  - Calvin


Post a reply to this message

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