for void specifically it likely doesn’t allow for any extra optimization assuming you aren’t using the function in any expressions (which you shouldn’t be if it never returns a value) it should already be efficient without a return type on the function.
It does help by helping gdscript give you better errors and warnings to help notice when you’re expecting a return but it doesn’t return anything or the function shouldn’t return anything but in actuality it does