POV-Ray : Newsgroups : povray.off-topic : Time is not free : Re: Time is not free Server Time
3 Sep 2024 21:15:00 EDT (-0400)
  Re: Time is not free  
From: Warp
Date: 13 Nov 2010 08:44:38
Message: <4cde9646@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> >   It looks like a really inefficient way of computing a simple calculation.

> It's a lazy calculation. Hopefully the compiler can figure out when it 
> doesn't actually need to do that.

  It's provable (no, not a typo of "probable", different thing) that, in
the general case, the problem "will this line of code ever be executed?"
is an unsolvable problem. Hence a compiler can make that decision only
in the most trivial cases.

-- 
                                                          - Warp


Post a reply to this message

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