MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Recursion limit: a good idea to ignore?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82229] Re: [mg82218] Recursion limit: a good idea to ignore?
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Tue, 16 Oct 2007 03:17:16 -0400 (EDT)
  • References: <200710150524.BAA00241@smc.vnet.net>

On Oct 15, 2007, at 1:24 AM, Will Robertson wrote:

> Hello,
>
> I've written a potentially inefficient algorithm to combine multiple
> joined polygons into a single one. On large plots I get the warning
> "$RecursionLimit::reclim: Recursion depth of 256 exceeded." and a
> bunch of errors because of this.
>
> Now, should I try and re-write my program (the speed of it is not
> entirely critical) to avoid recursion or is it "okay" to locally
> remove the recursion limit for such code?

In my opinion as long as your confident you will terminate your  
recursion and that you are not consuming too much memory at each  
iteration removing the limit is fine.

Regards,

Ssezi




  • Prev by Date: Re: Applying Additive Gaussian Noise with standard deviation
  • Next by Date: Re: Recursion limit: a good idea to ignore?
  • Previous by thread: Recursion limit: a good idea to ignore?
  • Next by thread: Re: Recursion limit: a good idea to ignore?