• 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: Fastest way to replace characters in string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest way to replace characters in string


  • Subject: Re: Fastest way to replace characters in string
  • From: Thomas Wetmore <email@hidden>
  • Date: Fri, 23 Aug 2013 11:52:29 -0400

On Aug 23, 2013, at 9:40 AM, Alex Zavatone <email@hidden> wrote:
>
> Why isn't it a good idea to have everything set up before you need it?
>
> In my reasoning, If there is downtime when items can be set up of prefetched before they are needed, then they are ready for use when needed.
>
> If you don't do that, then there is some delay when you need the items that is handled ahead of time, resulting in a delay before the items are available for use or displayed to the user.
>
> Of course, this implied lazy instantiation and with it, I wonder why lazy instantiation is so big.  If we're focused on performance, doesn't it make sense to have the items ready before we need them?
>
> Sure, I use lazy instantiation at times as well, but I'm rather curious as to why this is such a preferred method.

1. It shortens the time before a system becomes responsive to the user.

2. The container might not be used at all, so its a win-win-win.

3. The time it takes to lazy allocate a container is lost in the noise.

Tom Wetmore
_______________________________________________

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: 
 >Fastest way to replace characters in string (From: Diederik Meijer | Ten Horses <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Wim Lewis <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Diederik Meijer | Ten Horses <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Jens Alfke <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Keary Suska <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Thomas Wetmore <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Steve Mills <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Thomas Wetmore <email@hidden>)
 >Re: Fastest way to replace characters in string (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Static analyser grumbling
  • Next by Date: How to observe validity of NSTextField+NSNumberFormatter?
  • Previous by thread: Re: Fastest way to replace characters in string
  • Next by thread: Re: Fastest way to replace characters in string
  • Index(es):
    • Date
    • Thread