Is :ConnectParallel() more performant?

Gathered from Parallel Lua Beta - Updates / Announcements

From my knowledge, making it run in parallel will sync related (or exact) signals together.
Let’s say you were listening to Heartbeat in multiple scripts for example, instead of running them individually it will realize that there’s multiple and run Heartbeat once and execute everything using Heartbeat at once, instead of happening multiple times.

Now if I get this right, the Actor has to be different but the Signal which is being read has to be the same. If you’re reading the ChildAdded of Part1 and Part2 and parallel them, it will not execute at the same time (for obvious, performant reasons). However, if you were listening to ChildAdded in two different scripts it’s good practice to use ConnectParallel to lower RBXScriptSignal events firing too much.

In practicality, if it’s a signal for an event that is only connected once, just use Signal::Connect.

12 Likes