PHP / OOP使用Classname vs直接使用NameSpace \ Classname

Please consider the codes below.

Code1:

<?php
use App\User;

class SomeController {

    public function getUsers()
    {
        return User::all(); 
    }
}

Code2:

<?php
class SomeController {

   public function getUsers()
   {
      return \App\User::all();
   }
}

I got confused whether these two have that much impact to its performance. I know that the first way of coding seems really the better/nicer way but what if I just want to use the User class just once on my Controller? Which is the better choice for single-used class?

Personally, if I know I am going to use a class reference exactly once, I use the full reference in-situ and forget the use. The benefit to the use is that if a class is referenced many times then it is easier to rename the class name or the namespace if use is used (since there are fewer refs to repair).

I would expect that there are no performance improvements one way or the other, and if there were, it would be such a trivial improvement that a better server would be an easier way to realise those speed benefits. I tend to advocate against trying to squeeze performance improvements this way, as it encourages reducing readability over benefits that are too small to be noticeable.

This sort of consideration may also be a premature optimisation, i.e. an optimisation that wastes engineering effort on something that is not actually a problem (either now or in the future). There is a good discussion on that here.