• 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: [iPhone] Why so many calls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] Why so many calls?


  • Subject: Re: [iPhone] Why so many calls?
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 28 Oct 2009 09:01:45 -0700

On Oct 27, 2009, at 5:22 PM, Phil Curry wrote:

>>> But can anyone explain all the other duplicate calls?
>>
>> Why does it matter?  If you have eight or nine sections it makes
>> perfect sense.  Or you could have one section and it needs to draw
>> multiple times, and whoever designed the API didn't want to go through
>> the expense of a KVO observation, instead asking the delegate for the
>> header/footer each time it needed it.
>>
>> But none of that matters.
> Kyle-
>
> But, as I thought I explained in the original post, the table only has 2 sections, 1 with 2 rows and 1 with 1 row.
> The table is only being loaded once. So why does it take:
>
> 9 tableView:titleForHeaderInSection: calls for 2 sections
> 8 tableView:titleForFooterInSection: calls for 2 sections
> 2 numberOfSectionsInTableView: calls for a single load
>
> In a table of this size, you're right - "Why does it matter".
> But what if my real table has 99 sections? Why should I get bogged down with 800-900 calls for section header titles and section footer titles.
> Seems like an incredible waste of effort. Just curious if anyone knows why this happens. If you don't know why, just say so.

You should log a bug for this, especially if it is a performance concern.

However, the iPhone has a lot of performance tuning done to it. This area was obviously not a hot spot.

corbin


_______________________________________________

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: [iPhone] Why so many calls? (From: Phil Curry <email@hidden>)

  • Prev by Date: Re: Adding new Core Data objects through a form
  • Next by Date: Re: FSMountServerVolumeSync Authentication problem
  • Previous by thread: Re: [iPhone] Why so many calls?
  • Next by thread: FSMountServerVolumeSync Authentication problem
  • Index(es):
    • Date
    • Thread