• 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: Bryan Henry <email@hidden>
  • Date: Tue, 27 Oct 2009 23:44:54 -0400

Have you tried a table with 99 sections to see whether that scaling is really the case?

While I agree that some of those are likely unnecessary calls that could be optimized away, this is all more the subject of an enhancement report for Radar than anything else.

- Bryan

On Oct 27, 2009, at 8:22:29 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.


I happen to live in a world of disturbing images. What can I say?
-Phil
_______________________________________________

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

_______________________________________________

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: [iPhone] Why so many calls?
  • Next by Date: Re: Problem with allocating memory
  • Previous by thread: Re: [iPhone] Why so many calls?
  • Next by thread: Re: [iPhone] Why so many calls?
  • Index(es):
    • Date
    • Thread