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
- References:
- Recursion limit: a good idea to ignore?
- From: Will Robertson <wspr81@gmail.com>
- Recursion limit: a good idea to ignore?