2 ms·
Here's a similar case from 2020: https://stackoverflow.com/a/59570825 https://stackoverflow.com/a/59570825 With a link to the V8 line of code defining the 128
by rkagerer 4y ago
Here's a similar case from 2020: https://stackoverflow.com/a/59570825 https://stackoverflow.com/a/59570825
With a link to the V8 line of code defining the 128 limit: https://github.com/v8/v8/blob/596d0ce7b7a3900c529025aaa77e5fc39162c8c5/src/hydrogen.cc#L3350 https://github.com/v8/v8/blob/596d0ce7b7a3900c529025aaa77e5f...
- klelatti 4y agoInteresting thanks. Is there a good reason for a relatively low fixed limit like this?
- RichieAHB 4y agoWorth noting that SO comment calls out that the linked line points to the code as it was in 2013 and that there have been changes since then: > The link into the V8 source code above is pretty old (2013), so I tried to find the modern equivalent. I didn't find a hard limit, but found several heuristics that decide between table lookups and tree (binary search) lookups (ia32, x86). When I plug in my numbers I don't quite get a borderline case where I found it, so I'm not sure this is the actual cause or whether there's another optimization not being triggered elsewhere.