[v8-users] Native string#hashCode?

2020-11-20 Thread pawel.b...@gmail.com
I've been recently wondering whether there's plans to add native implementation of hashCode to string (similar to Java)? Context: we're using hash based data structures quite extensively. The lack of builtin hashCode is a bit of a pain on performance side and it's quite hard to get around this.

[v8-users] Recompute handler

2021-02-08 Thread pawel.b...@gmail.com
I tried searching on the group, v8.dev, search engine... could someone give a short explanation on what recompute handler is (in terms of IC states), when it triggers and how is it different from Premonomorphic state? In my case it seems to be triggered between Premonomorphic and monomorphic st

Re: [v8-users] Recompute handler

2021-02-08 Thread pawel.b...@gmail.com
ently (properties are rarely added/deleted from objects on the > prototype chain). > > On Mon, Feb 8, 2021 at 5:25 PM pawel.b...@gmail.com > wrote: > >> I tried searching on the group, v8.dev, search engine... could someone >> give a short explanation on what re

[v8-users] Are switch-case statements optimised for up to 10 cases?

2021-05-16 Thread pawel.b...@gmail.com
Hi, I noticed a performance cliff when using switch case statements longer than 10 cases. I did a bit of poking around and noticed that different instructions are used to handle cases above the 10th. Until the 10th its "JumpIfTrue" and above "JumpIfTrueConstant". Two questions: - are people a