• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BOOL array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BOOL array


  • Subject: Re: BOOL array
  • From: "Clark Cox" <email@hidden>
  • Date: Thu, 11 Sep 2008 08:46:28 -0700

On Thu, Sep 11, 2008 at 6:22 AM, dreamcat7 <email@hidden> wrote:
>
> On 11 Sep 2008, at 13:08, Jean-Daniel Dupas wrote:
>>
>> That's fine if you love to reinvent the wheel, but that exactly the
>> interface provided by CFMutableBitVector.
>>
>> CFBitVectorCreateMutable()
>> CFBitVectorSetBitAtIndex()
>> CFBitVectorGetBitAtIndex()
>>
>>
>> And it probably does it better as it will not waste 7 bits for each
>> option.
>>
>
> No, in a CFBitVector there is 4-bytes for each bit.

Not true. Internally, CFBitVector only uses 1 bit per bit. It's only
the parameter types that are 4-bytes (which makes sense as they are
passed in registers anyway).

--
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

References: 
 >Re: BOOL array (From: dreamcat7 <email@hidden>)
 >Re: BOOL array (From: Jean-Daniel Dupas <email@hidden>)
 >Re: BOOL array (From: dreamcat7 <email@hidden>)

  • Prev by Date: Re: 9/11 was an INSIDE JOB!
  • Next by Date: Re: Cocoa application running very slow under 64 bit
  • Previous by thread: Re: BOOL array
  • Next by thread: Re: BOOL array
  • Index(es):
    • Date
    • Thread