Re: Dividing an array into subgroups?
Re: Dividing an array into subgroups?
- Subject: Re: Dividing an array into subgroups?
- From: Andrew Pinski <email@hidden>
- Date: Mon, 16 Jun 2003 23:54:22 -0400
gcc does optimize sib calls so that tail calls will be optimize
like any other sib calls so the stacksize will not grow too big.
Thanks,
Andrew Pinski
On Monday, Jun 16, 2003, at 23:42 US/Eastern, Michael Tsai wrote:
On Monday, June 16, 2003, at 11:09 PM, Andrew Merenbach wrote:
I would like to divide an array into subarrays of a specified size,
and to assign the remainder to their own array.
I'm uncertain as to whether it would actually be a good idea, but
might there exist a tail-recursive partitioning algorithm that would
work better than the above code? Could
there be any advantage to it, such as speed or code size?
Well, Objective-C doesn't optimize tail calls...
--
Michael Tsai <http://www.c-command.com>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.