If you only want to fill in this variable at a later point, selectedIndexPath must be an optional since all instance variables need to have a value when the class is created. I prefer to use optionals as little as possible.
Is it a waste of processing? Not really. It does do a little work that is unused and that could be avoided by using an optional. But an optional adds a little work every time you want to use it, so in the end the amount of processing time used comes to about the same thing.
This kind of performance optimization is not worth worrying about, to be honest. This is also referred to as “premature optimization”.