LearnNewsExamplesServices
Frontmatter
id3801
titlemanager.Toast: updateItemsInPosition() => performance
stateClosed
labels
enhancement
assigneestobiu
createdAtJan 6, 2023, 9:16 AM
updatedAtJan 6, 2023, 12:51 PM
githubUrlhttps://github.com/neomjs/neo/issues/3801
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 6, 2023, 12:51 PM

manager.Toast: updateItemsInPosition() => performance

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jan 6, 2023, 9:16 AM

hi torsten,

you are using an async function (await) inside a for loop. this is similar to waiting for ajax calls one by one before triggering the next call.

i recommend to use Promise.all() instead.

similar example: https://github.com/neomjs/neo/blob/dev/src/Main.mjs#L226

tobiu added the enhancement label on Jan 6, 2023, 9:16 AM
tobiu assigned to @Dinkh on Jan 6, 2023, 9:16 AM
tobiu unassigned from @Dinkh on Jan 6, 2023, 12:48 PM
tobiu assigned to @tobiu on Jan 6, 2023, 12:48 PM
tobiu referenced in commit 5a2f6fd - "manager.Toast: updateItemsInPosition() => performance #3801" on Jan 6, 2023, 12:48 PM
tobiu closed this issue on Jan 6, 2023, 12:51 PM