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)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, )
Details
Go to https://www.fxhash.xyz/generative/18489 (Exact hash used is https://gateway.fxhash2.xyz/ipfs/QmU2rgnYKSHVpnurrGVBAWXbuCHEgSKYR33waLbxpcCPnn/?fxhash=ooTeQ7zc5AdGn2YbJcWLzMbTo5DsEJveorqjygLLiDWRUBzhbXd)
Nightly: https://share.firefox.dev/3Kddo1s
Maybe something worth improving here?
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Additional profile for 4 different variations : https://share.firefox.dev/3lBgulR
Do the markers suggest lots of bailouts?
Reporter | ||
Comment 2•2 years ago
|
||
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
Comment 3•2 years ago
|
||
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
}
}
Updated•2 years ago
|
Reporter | ||
Comment 4•1 year ago
|
||
Latest profile: https://share.firefox.dev/44J85hv
from 600ns - > 360ms
Reporter | ||
Updated•10 months ago
|
Description
•