perf: reduce widget and runtime overhead
This commit is contained in:
1 parent
5a7607ddf7
commit
14c7e58e17
33 files changed
+779
-339
No files matched your search
@@ -11,10 +11,15 @@ export const mediaTranscodingRequestHandler = createIntegrationRequestHandler<
|
||||
>({
|
||||
async requestAsync(integration, input) {
|
||||
const integrationInstance = await createIntegrationAsync(integration);
|
||||
const [queue, workers, statistics] = await Promise.all([
|
||||
integrationInstance.getQueueAsync(input.pageOffset, input.pageSize),
|
||||
integrationInstance.getWorkersAsync(),
|
||||
integrationInstance.getStatisticsAsync(),
|
||||
]);
|
||||
return {
|
||||
queue: await integrationInstance.getQueueAsync(input.pageOffset, input.pageSize),
|
||||
workers: await integrationInstance.getWorkersAsync(),
|
||||
statistics: await integrationInstance.getStatisticsAsync(),
|
||||
queue,
|
||||
workers,
|
||||
statistics,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user