>
> .
Thanks Andreas. I did try const again at global scope with the latest dev
chrome but saw a slowdown. For example a 10 move deep analysis of the
chess starting position using var takes (consistently) 1.9sec. Using const
takes (consistently) 2.1 sec. Over the course of a game that's p
Note that there is a significant difference between
- const on global scope
- const in local scope
- const in Harmony mode
There first two have never been standardised, and just exist in V8 for
web compatibility. In particular, const semantics in the global scope
is outright insane (it isn't real
>
> .
Hi Jakob, I've got Chrome Version 39.0.2171.13 dev-m now; thanks for
answering my questions. I'll give const another go but every time I've
tried it in the past I've noticed a (significant) slowdown (as I have using
switch which I completely avoid now). Thanks again...
--
--
v8-us
On Wed, Oct 8, 2014 at 6:13 PM, Colin Jenkins wrote:
> 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
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