|
![](/i/fill.gif) |
In article <39a243dd@news.povray.org> , Warp <war### [at] tag povray org> wrote:
> Still, a recursion limit of 50 (or whatever it was) is ridiculously small.
This depends on the use (it would be sufficient for most chess programs).
Anyway, I agree with you that 50 (I haven't checked it it is the actual
limit) might be too small in some cases.
> You don't have to use the program stack to simulate recursive macros. You
> can make your own stack by malloc()ing memory. Then the only limit is the
> available memory.
True, but guess which solution runs much faster? Growing the stack rarely
causes much overhead, while each call to malloc will take noticeable time.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |