Skip to content

Commit def9b1f

Browse files
committed
fix(performance): improve tags processing time
1 parent 0514910 commit def9b1f

3 files changed

Lines changed: 1041 additions & 1736 deletions

File tree

src/services/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ export default class Provider extends CloudGraph.Client {
762762
const serviceClass = this.getService(serviceData.name)
763763
const entities: any[] = []
764764
for (const region of Object.keys(serviceData.data)) {
765+
await new Promise(resolve => setTimeout(resolve, 10)) // free the main nodejs thread to process other requests
765766
const data = serviceData.data[region]
766767
if (!isEmpty(data)) {
767768
data.forEach((service: any) => {

0 commit comments

Comments
 (0)