Which loop takes less time to loop

1.RunService?
2.for I, v in pairs?
3.While true do?
Or anything else that you would like to prefer.

1 Like

I’m not a programmer, and please do correct me if I’m wrong, but what about Heartbeat? I’ve always seen it recommended in terms of being up to date server/client.

well, for what application? RunService is not iterable so it’s not a ‘loop.’ To make do-while loops iterable you need an escape condition which adds complexity, but at their minimum both do-while and for-loops are O(1) complexity.

1 Like

What?

These all have different use cases, if you want a “fast loop”: for i =