Content pfp
Content
@
0 reply
0 recast
2 reactions

jtgi pfp
jtgi
@jtgi
surprising 10x speed up in throughput with this change: Before: - await promise 1 - await p2 - await p3 - await p4 After: - await [p1, p2] - await [p3, p4] Running node.js. Expected minor speed up. Underestimated cost of context switching.
10 replies
2 recasts
26 reactions

jtgi pfp
jtgi
@jtgi
@martinamps i heard you like graphs
1 reply
0 recast
0 reaction

christopher pfp
christopher
@christopher
Promise.all()?
1 reply
0 recast
4 reactions

Kevin pfp
Kevin
@typedarray.eth
Desperate for more details, pls
1 reply
0 recast
0 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
saving await [p1 … p4] for a rainy day?
1 reply
0 recast
0 reaction

Britt Kim pfp
Britt Kim
@brittkim.eth
1 reply
0 recast
0 reaction

​woj ツ pfp
​woj ツ
@woj.eth
did you just save my life
1 reply
0 recast
0 reaction

segwitnitwit pfp
segwitnitwit
@segwitnitwit
Holup what JavaScript wizardry is this notation?
1 reply
0 recast
0 reaction

Deployer pfp
Deployer
@deployer
Nice!
0 reply
0 recast
0 reaction

MajorTom327 pfp
MajorTom327
@majortom327.eth
Go on Promise.all, Promise.allSettled Bluebird is good too for handling promises And in remix-utils for remix, you have the awesome “promiseHash” If you have one that is dependent of a previous, but not all dependent on previous, a combo of Promise.all and .then on the needed one could be a good idea
0 reply
0 recast
0 reaction

Kuririn pfp
Kuririn
@kuririn
I try using promise.all() by default wherever I can.
0 reply
0 recast
0 reaction