++i; is a little more efficient in C language, in javascript difference in performance of all these operators is tiny
On Dec 16, 3:21 pm, RQuadling <[email protected]> wrote: > Hi. > > Is there any consensus on which is more efficient in a for() loop? > > I was taught that for ++i being the most efficient. > > I've created 2 patches (++ and a +1) in case anyone is interested. > > http://pastie.org/private/3rgonpsn90yjd17q9zwa > andhttp://pastie.org/private/qufy3rwmaevxc1sysvq > > From what I've read, this could be a little pointless, but I'm not the > expert in this area. > > Regards, > > Richard. -- You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en
