There will be no noticeable differences between those two codes in a production environment.
Over a thousand iterations you would still see no difference.
Over a million iterations you will notice the first one (all on one line) would be slightly better since there is one less variable assignment made.
But the difference in performance on a forum is in no way justification for code you can read and maintain easier.
|