[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Audience for globals discussion?
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 18 Aug 2010 13:38:43 +0200
On Wed, Aug 18, 2010 at 1:15 PM, Patrick McCavery
<patrick@cakeandfile.com> wrote:
> Everyone says globals are slower, any guesses on specifically how much
> slower? i.e half the speed of locals?
You'll really feel the difference on inner loops, otherwise not that much.
It's good to get in the habit of typing 'local' anyway - though as Rob
points out there is a 250-odd limit to the number of locals in a
single block. If you hit this, your functions are probably too long
;)
steve d.