Open Bug 1897258 Opened 1 year ago Updated 1 year ago

Load all message collections in Skylight concurrently to speed-up the process

Categories

(Firefox :: Messaging System, enhancement, P3)

enhancement
Points:
3

Tracking

()

People

(Reporter: sachung, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [omc])

We are currently loading all three message collections (ie. production messages, message experiments, rollout messages) individually, as seen here. Consider using Promise.allSettled() instead to load all three collections concurrently and speed up the process.

One thing I've realized is that since the get*Collection functions no longer use the network, they are unlikely to be slow enough to be worth making async. That said the other two awaits can still be optimized this way.

Points: --- → 3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.