2010/2/3 blackdog <[email protected]>: > > Hi, > > I was wondering if there were any javascript idioms that v8 can > optimise better than others. > > For example, i imagine that having "classes" which don't add/delete > fields are probably better, due to v8's hidden classes. > Also, i believe concatenating strings with += is actually very quick > in v8 and one doesn't need to add to, and then join an array. > > I think it would be good to have a list best practices to allow > javascript generation programs to know how best to take advantage V8.
I agree we should have this. In the mean time "Don't use the 'with' keyword" is the short version. -- Erik Corry -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
