Hi, Apologies for the basic nature of these questions. I feel pretty stupid asking, but I can't find the answer anywhere...
I've written a chess engine in Javascript and am pleased with the initial (not-thought-about) performance; in play, on my fairly old machine it's analysing about 500,000 nodes/sec and when testing the move generator, it gets up to an order of magnitude more than that. http://op12no2.me/toys/lozza/play.htm I use a lot of globals, e.g. right at the top scope will be something like:- var QUEEN_VALUE = 975; Does V8 optimise references to globals? I have a lot of them and recursion depths can get quite deep. if I used:- const QUEEN_VALUE = 975; Would V8 inline the literal value of 975? I've tried using const, but performance drops dramatically, which I find a bit odd; I'm obviously not understanding something. And last question: is there a bleeding-edge Chrome browser download that always has a very modern V8 engine embedded in it available anywhere? PS: I get the best performance from Chrome by a *long* way when trying the program across browsers. PPS: it would be really really really nice if V8 had (non-standard) support for 64 bit integers in the context of bitwise operations... :) Regards, Colin J http://op12no2.me -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
