Re: [v8-users] Profiling: what is "LoadIC: A load IC from the snapshot"?

2018-03-01 Thread Andrew Wilcox
> > Depending on usage patterns, you might see a further speed boost if you > split your objects into two parts, where one has the same shape for all > objects and the other is type dependent > Oh interesting idea! Thanks! -- -- v8-users mailing list v8-users@googlegroups.com

Re: [v8-users] Profiling: what is "LoadIC: A load IC from the snapshot"?

2018-03-01 Thread Jakob Kummerow
Depending on usage patterns, you might see a further speed boost if you split your objects into two parts, where one has the same shape for all objects and the other is type dependent, roughly: class Thing { constructor(type, specific, ...) { this.type = type; this.other_common_field =

Re: [v8-users] Profiling: what is "LoadIC: A load IC from the snapshot"?

2018-03-01 Thread Andrew Wilcox
> > can anyone tell me what LoadIC is? > > > The thing that handles property loads (like foo.bar;). Thank you Jacob! Seeing it take 22% is rare. Is your app heavy on polymorphic property loads? Yes, I'm writing an interpreter and it was doing a *lot* of instanceof checks. Since I

Re: [v8-users] Profiling: what is "LoadIC: A load IC from the snapshot"?

2018-03-01 Thread Jakob Kummerow
The thing that handles property loads (like foo.bar;). Seeing it take 22% is rare. Is your app heavy on polymorphic property loads? On Thu, Mar 1, 2018 at 9:44 AM Andrew Wilcox wrote: > My prof output starts off with > > [JavaScript]: >ticks total nonlib name

[v8-users] Profiling: what is "LoadIC: A load IC from the snapshot"?

2018-03-01 Thread Andrew Wilcox
My prof output starts off with [JavaScript]: ticks total nonlib name 12065 22.7% 22.7% LoadIC: A load IC from the snapshot 27325.1%5.1% Builtin: StrictEqual and I was wondering, can anyone tell me what LoadIC is? Thanks! Andrew -- -- v8-users mailing list