• 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: Future of Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Future of Cocoa


  • Subject: Re: Future of Cocoa
  • From: Jens Alfke via Cocoa-dev <email@hidden>
  • Date: Wed, 20 Nov 2019 17:28:33 -0800


> On Nov 20, 2019, at 5:21 PM, Saagar Jha <email@hidden> wrote:
>
> Oh, I guess I didn’t explain what I was talking about well. I’m saying that
> the compiler would do a full method inline but put it behind a check to see
> if it’s legal to continue executing.

That optimization would increase code size (it can't possibly decrease it.) And
it can't do very effective inlining, because the code to be inlined is only
conditionally executed, so it can't really be merged into the call site. All
you really save is the time difference between `bar_is_unswizzled` and
`objc_msgsend`, which probably isn't very much (although you do have better
locality of reference.)

But I am not a compiler engineer, so this is just my hobbyist opinion :)

—Jens
_______________________________________________

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

  • Follow-Ups:
    • Re: Future of Cocoa
      • From: Pier Bover via Cocoa-dev <email@hidden>
References: 
 >Future of Cocoa (From: Turtle Creek Software via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Richard Charles via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Gerald Henriksen via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Jean-Daniel via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Jens Alfke via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Saagar Jha via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Jens Alfke via Cocoa-dev <email@hidden>)
 >Re: Future of Cocoa (From: Saagar Jha via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Future of Cocoa
  • Next by Date: Re: Future of Cocoa
  • Previous by thread: Re: Future of Cocoa
  • Next by thread: Re: Future of Cocoa
  • Index(es):
    • Date
    • Thread