carlosvegap / capstone-kickoff

0 stars 0 forks source link

Awaiting with a loop on Adventure.js PERFORMANCE #62

Open CarLosVegga opened 1 year ago

CarLosVegga commented 1 year ago

nit (performance): Awaiting with a loop is typically going to lead to some significant slowdown, it is effectively waiting for each network call to complete before moving on to the next one in the loop. Is there a way we could improve this? Do the network calls actually depend on each other?

Hint: MDN Promise documentation might be of some help

_Originally posted by @jbmanning in https://github.com/carlosvegap/capstone-kickoff/pull/55#discussion_r936070549_

CarLosVegga commented 1 year ago

https://github.com/carlosvegap/capstone-kickoff/pull/55#discussion_r936073912

CarLosVegga commented 1 year ago

https://github.com/carlosvegap/capstone-kickoff/pull/55#discussion_r936111603