Open Bug 1816883 Opened 2 years ago Updated 9 months ago

JS demo (https://www.fxhash.xyz/generative/18489) appears to spend large amounts of time in non-ion path in lots of functions (time is spent in generators)

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Summary: JS demo (https://www.fxhash.xyz/generative/18489) spends large amounts of time in lots of functions in non-ion path → JS demo (https://www.fxhash.xyz/generative/18489) appears to spend large amounts of time in non-ion path in lots of functions

Additional profile for 4 different variations : https://share.firefox.dev/3lBgulR
Do the markers suggest lots of bailouts?

Another demo made by this person using thi-ng library (https://github.com/thi-ng/fxhash-tpl) appears to have similar profiles with largish time in non-ion path.
https://www.fxhash.xyz/generative/17940 : https://share.firefox.dev/40VyqaU

This is spending time in generator code, like this one:

function* tt(...t) {
    const e = t.map(n => n[Symbol.iterator]());
    for (;;) {
        const n = [];
        for (let s of e) {
            let r = s.next();
            if (r.done) return;
            n.push(r.value)
        }
        yield n
    }
}
Severity: -- → N/A
Priority: -- → P3

Latest profile: https://share.firefox.dev/44J85hv
from 600ns - > 360ms

Summary: JS demo (https://www.fxhash.xyz/generative/18489) appears to spend large amounts of time in non-ion path in lots of functions → JS demo (https://www.fxhash.xyz/generative/18489) appears to spend large amounts of time in non-ion path in lots of functions (time is spent in generators)
Depends on: 1317690
You need to log in before you can comment on or make changes to this bug.