POV-Ray : Newsgroups : povray.advanced-users : function optimization question : function optimization question Server Time
29 Jul 2024 12:26:40 EDT (-0400)
  function optimization question  
From:
Date: 15 Mar 2002 05:15:24
Message: <s4i39u0a519jemevbcmh1fuv2fb6e0du3a@4ax.com>
I wonder if this is optimized if functions evaluator:

select(
  x*Ey+y*Ex-R1*Ex,
  select(
    z+3*x.
    x*Ey+y*Ex-R1*Ex,
    123
  ),
 17
)

Note expression "x*Ey+y*Ex-R1*Ex" appear twice. How many times is it
calculated ?

ABX


Post a reply to this message

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