src/EntityDescriptor/User/AbstractUser.php
public static function load($id, $nullable=true, $usingCache=true) {
		if( static::getLoggedUserID() == $id ) {
			return $GLOBALS['USER'];
		}
		return parent::load($id, $nullable, $usingCache);
	}
public static function load($id, $nullable=true, $usingCache=true) {
		if( static::getLoggedUserID() == $id ) {
			return $GLOBALS['USER'];
		}
		return parent::load($id, $nullable, $usingCache);
	}
public static function load ( $ id , $ nullable = true , $ usingCache = true ) { if ( static :: getLoggedUserID ( ) == $ id ) { return $ GLOBALS [ 'USER' ] ; } return parent :: load ( $ id , $ nullable , $ usingCache ) ; }
Load an user object

@param	mixed|mixed[] $id The object ID to load or a valid array of the object's data
@param	boolean $nullable True to silent errors row and return null
@param	boolean $usingCache True to cache load and set cache, false to not cache
@return	PermanentObject The object

It tries to optimize by getting directly the logged user if he has the same ID.
Load an user object