Re: bitwise operations in obj C
Re: bitwise operations in obj C
- Subject: Re: bitwise operations in obj C
- From: "Clark Cox" <email@hidden>
- Date: Wed, 17 Oct 2007 12:07:39 -0700
On 10/17/07, Erfan Aleemullah <email@hidden> wrote:
> well, not exactly sure, but the program is nearing beta release, and i'm
> trying to eliminate leaks and increase efficiency.
> So, not exactly sure if i *absolutely need to do bit ops here, but it would
> definitely help, because the operation is done everytime the linenumbers
> increment themselves - so when the line number is 100,000, the code would
> have 'modulo'ed' 100,000 times and as the numbers get large themselves-->
> eg) 100,000 % 12 = slightly expensive yes?
Maybe, maybe not. Before you put any effort into speeding up that
operation, profile your code to see if it is actually the slow part of
your algorithm.
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden