按字母顺序对 "use" 关键字进行排序,会节省执行时间和性能吗?

Sort "use" keyword alphabetical, would save execution times and performance?

我玩 OOP 有一段时间了,现在 phpStorm 有这个 "Optimize imports"(代码 > 优化导入或 CTRL+ALT+O),它的作用是按字母顺序对 use 关键字进行排序,例如:

use A;
use D;
use C;
use B;

会变成:

use A;
use B;
use C;
use D;

那么,这会优化我的代码执行方式吗?这会对应用程序性能产生一些影响吗?或者这只是为了提高可读性而做的弥补?

use 语句的顺序不会提高代码的性能。

但是,它确实使代码更易于人类理解。

由于 use 语句不多,可读性非常值得您的 IDE 提供的免费点击赠品