Frontmatter
| id | 3801 |
| title | manager.Toast: updateItemsInPosition() => performance |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jan 6, 2023, 9:16 AM |
| updatedAt | Jan 6, 2023, 12:51 PM |
| githubUrl | https://github.com/neomjs/neo/issues/3801 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 6, 2023, 12:51 PM |
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