I think it depends on your definition of "Magic". I wouldn't consider manual
hoisting to be magic even though the compiler may decide to locally cache
the length of the array rather than perform a lookup every time. Not every
compiler will do the same optimizations.

I think the first rule of optimization should always be "measure".

On Mon, Dec 20, 2010 at 7:21 AM, Marc Harter <[email protected]> wrote:

>  On Mon, 2010-12-20 at 09:41 -0500, Miller Medeiros wrote:
>
> don't try to be smarter than a computer and don't do "dumb" optimizations!
>  http://blog.millermedeiros.com/2010/10/the-performance-dogma/
>
>
> Good article Miller, I agree with this as well.  I think it stomps on
> creativity and permission to "get it wrong" the first time... its not all
> about performance but you can't throw the baby out with the bathwater,
> profiling in particular has been helpful for me and a good build process.
> Marc
>
> --
> To view archived discussions from the original JSMentors Mailman list:
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here:
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]<jsmentors%[email protected]>
>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to